Conseils pour une installation correcte?
Conseils pour une installation correcte?
Ça sera plus sain en effet.
Il y'a des paquets à installer sur le système avant, mais je ne sais pas quelle distribution vous utilisez. Je vous conseille Debian ou CentOS.
Par exemple pour CentOS, si vous avez choisi "base" et "outils de développement" à l'installation du système, vous rajoutez ces paquets et c'est bon:
Vous penserez aussi à installer les headers avant Dahdi.Code:yum install newt / newt-devel / ncurses / ncurses-devel / bison / bison-devel / zlib / zlib-devel / openssl / openssl-devel / gnutls-devel / libtermcap-devel / libxml2 / libxml2-devel
Sous debian:
Sous CentOS:Code:apt-get install --assume-yes install linux-headers-$(uname -r) ln -s linux-headers-$(uname -r) /usr/src/linux
Code:yum install kernel-develJe crois qu'il y'a déjà un tutoriel sur le site.Code:cd /usr/src wget -c http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.13.tar.gz wget -c http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.2.2.tar.gz wget -c http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.11.tar.gz wget -c http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-2.4.0.tar.gz wget -c http://downloads.asterisk.org/pub/telephony/dahdi-tools/dahdi-tools-2.4.0.tar.gz tar xvzf asterisk-1.6.2.13.tar.gz tar xvzf asterisk-addons-1.6.2.2.tar.gz tar xvzf libpri-1.4.11.tar.gz tar xvzf dahdi-linux-2.4.0.tar.gz tar xvzf dahdi-tools-2.4.0.tar.gz cd dahdi-linux-2.4.0 make make install cd ../dahdi-tools-2.4.0 ./configure make menuselect make make install make config cd ../libpri-1.4.11 make make install cd ../asterisk-1.6.2.13 ./configure make menuselect make make install make samples make config cd ../asterisk-addons-1.6.2.2 ./configure make menuselect make make install make samples
Dernière modification par ffossard ; 09/11/2010 à 15h30.
Voila,
Nous avons vu que la carte était bien installée (merci pour le tuto, je l'utiliserai pour la prochaine fois), mais c'était un problème de config dans dahdi_channels.conf a ajouté #include dahdi-channels.conf
Maintenant on peut sortir mais les appels entrant sont bloqué avec le message
Extension '71xxxxxx' in context 'from-pstn' from '479xxxxxx' does not exist. Rejecting call on channel 0/1, span 1.
Merci
Montrez-nous le contenu du contexte [from-pstn] de votre dialplan.
Bonjour, me voila de retour.
Voici le script pour from-pstn
[from-pstn]
exten => 071471310,1,Answer()
exten => 071471310,2,GotoIfTime(09:00-17:30,mon-fri,*,*?,071471310,3:Outoffice,s,1)
exten => 071471310,3,Set(Count=0)
exten => 071471310,4,Background(/tmp/record)
exten => 071471310,n,Set(Count=$[${Count}+1])
exten => 071471310,n,Waitexten(2)
exten => 071471310,n,GotoIf($[''& ${Count}<2]?,071471310,4:s,1)
exten => 1,1,Dial(Sip/102,10)
exten => 1,n,Dial(Sip/101&Sip/102&Sip/201&Sip/202,10)
exten => 1,n,Goto(Messagerie,1101,1)
exten => 2,1,Dial(Sip/201&Sip/202,10)
exten => 2,n,Dial(Sip/101&Sip/102&Sip/201&Sip/202,10)
exten => 2,n,Goto(Messagerie,1101,1)
exten => i,1,Goto(,071471310,3)
exten => s,1,Dial(Sip/101&Sip/102&Sip/201&Sip/202,10)
exten => s,n,Goto(Messagerie,1101,1)
exten => s,n,Hangup()
[TrunkIn]
include => default
Voici la réponse du serveur lors d'un appel :
-- Extension '71471310' in context 'from-pstn' from '479690952' does not exist. Rejecting call on channel 0/1, span 1
[Nov 10 09:15:39] ERROR[3044]: chan_dahdi.c:13579 dahdi_pri_error: 3 Unable to receive TEI from network in state 2(Assign awaiting TEI)!
[Nov 10 09:15:39] ERROR[3043]: chan_dahdi.c:13579 dahdi_pri_error: 2 Unable to receive TEI from network in state 2(Assign awaiting TEI)!
[Nov 10 09:15:39] ERROR[3045]: chan_dahdi.c:13579 dahdi_pri_error: 4 Unable to receive TEI from network in state 2(Assign awaiting TEI)!
Le fichier dahdi-channels.conf
; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 1-2
context = default
group = 63
Merci et bonne journée déjà .
Dernière modification par Hervis ; 10/11/2010 à 10h26.
Vous avez fait un reload (ou sip reload) après la modification du dialplan ..?
Mettez ceci dans le même contexte et repassez un appel, pour voir:
Rien à voir mais là il manque quelque chose:Code:exten => _X.,1,noop(exten: ${EXTEN}) exten => _X.,n,hangup()
Code:exten => i,1,Goto(,071471310,3)
SUPER, tout marche très bien.
Un tout grand merci pour l'aide précieuse.
Hervis