PDA

Voir la version complète : Asterisk, HFC PCI ISDN, ZapHFC et France Telecom


jean007
16/12/2005, 15h23
Hello,

J'ai installé Asterixk sur une Mandriva Edition 2006, je suis parti de la procédure BRIstuff et du pilote associé ZapHfc. La récupération des sources, la compilation et la mise en place s'effectue sans problème. Je paramètre l'ensemble suivant les fichiers founis ci-parès. Je relie les deux cartes au accès T0 Bri de France Telecome. Je démarre l'ensemble et là, surprise, aucun appel entrant ou sortant possible.

Si vous avez des idées, je suis preneur. Mes petits collègues attendent que le téléphone fonctionne. J'y suis depuis le début de la semaine et ils commencent à désespérer et moi aussi.

zaptel.conf

> # Span 1: ZTHFC1 "HFC-S PCI A ISDN card 1 [TE]"
> span=1,1,1,ccs,ami
> bchan=1-2
> dchan=3
>
> # Span 2: ZTHFC1 "HFC-S PCI A ISDN card 2 [TE]"
> span=2,1,1,ccs,ami
> bchan=4-5
> dchan=6
>
> # Global data
>
> loadzone = fr
> defaultzone = fr


zapata.conf

> [channels]
> ;
> ; Default language
> ;
> ;language=en
> ;
> ; Default context
> ;
> ;context=enEntree
> ;
> ; Channels
> ;
> language=fr
>
> switchtype = euroisdn
> overlapdial=yes
>
> pridialplan = dynamic
> prilocaldialplan=local
> nationalprefix=0
> internationalprefix=00
> usecallingpres=yes
> echotraining=100
>
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling = bri_cpe
> ;signalling = bri_cpe_ptmp
> ;signalling = bri_net_ptmp
> group = 1
> context=enEntree
> channel => 1-2,4-5

extensions.conf

> ; incoming ISDN BRI calls arrive here
> ;
> [enEntree]
> exten => _X.,1,Dial(IAX2/819,60) ; ring SIP phone #101 during 60 sec.
> exten => _X.,n,Hangup
>
> ; to call ISDN from SIP phones
> ; you must place SIP phones into sip-phones context (context=sip-phones) in sip.conf file
> [enSortie]
> ;exten => _X.,1,Dial(ZAP/g1/${EXTEN},60)
> exten => _X.,1,Dial(ZAP/1/${EXTEN},60)
> exten => _X.,1,Dial(ZAP/2/${EXTEN},60)
> exten => _X.,1,Dial(ZAP/4/${EXTEN},60)
> exten => _X.,1,Dial(ZAP/5/${EXTEN},60)
> exten => _X.,n,Hangup
> exten => _X.,102, Playtones(busy)
> exten => _X.,n,Wait(10)
> exten => _X.,n,Hangup
> exten => _X.,202,Playtones(congestion)
> exten => _X.,n,Wait(10)
> exten => _X.,n,Hangup
>
> [phones]
> ; Local phones
> ; They are all to be part of the 'phones' context
> include => enSortie
> exten => _819,1,Dial(IAX2/${EXTEN})
> exten => _827,1,Dial(IAX2/${EXTEN})
> exten => _828,1,Dial(SIP/${EXTEN}
>
Asterisk -r traces from the IAX2 phone to national ISDN network.

> Asterisk 1.2.0-BRIstuffed-0.3.0-PRE-1c, Copyright (C) 1999 - 2005 Digium.
> Written by Mark Spencer <markster@digium.com>
> ================================================== =======================
> Connected to Asterisk 1.2.0-BRIstuffed-0.3.0-PRE-1c currently running on amelie (pid = 18712)
> amelie*CLI> bri debug span 1
> Enabled debugging on span 1
> 1 -- Making new call for cr 130
> 1 > Protocol Discriminator: Q.931 (8) len=31
> 1 > Call Ref: len= 1 (reference 2/0x2) (Originator)
> 1 > Message type: SETUP (5)
> 1 > [1 041 031 801 901 a31 ]
> 1 > Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
> 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
> 1 > Ext: 1 User information layer 1: A-Law (35)
> 1 > [1 181 011 891 ]
> 1 > Channel ID (len= 3) [ Ext: 1 IntID: Implicit, Other Spare: 0, Exclusive Dchan: 0
> 1 > ChanSel: B1 channel
> 1 ]
> 1 > [1 6c1 051 411 811 381 321 371 ]
> 1 > Calling Number (len= 7) [ Ext: 0 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> 1 > Presentation: Presentation permitted, user number passed network screening (1) '827' ]
> 1 > [1 701 0a1 a11 311 341 371 371 301 331 331 321 381 ]
> 1 > Called Number (len=12) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '147703328' ]
> 1 < Protocol Discriminator: Q.931 (8) len=7
> 1 < Call Ref: len= 1 (reference 130/0x82) (Terminator)
> 1 < Message type: SETUP ACKNOWLEDGE (13)
> 1 < [1 181 011 891 ]
> 1 < Channel ID (len= 3) [ Ext: 1 IntID: Implicit, Other Spare: 0, Exclusive Dchan: 0
> 1 < ChanSel: B1 channel
> 1 ]
> 1 -- Processing IE 24 (cs0, Channel Identification)
> 1 < Protocol Discriminator: Q.931 (8) len=7
> 1 < Call Ref: len= 1 (reference 130/0x82) (Terminator)
> 1 < Message type: CALL PROCEEDING (2)
> 1 < [1 181 011 891 ]
> 1 < Channel ID (len= 3) [ Ext: 1 IntID: Implicit, Other Spare: 0, Exclusive Dchan: 0
> 1 < ChanSel: B1 channel
> 1 ]
> 1 -- Processing IE 24 (cs0, Channel Identification)
> 1 < Protocol Discriminator: Q.931 (8) len=12
> 1 < Call Ref: len= 1 (reference 130/0x82) (Terminator)
> 1 < Message type: PROGRESS (3)
> 1 < [1 081 021 871 fe1 ]
> 1 < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: International network (7)
> 1 < Ext: 1 Cause: Unknown (126), class = Interworking (7) ]
> 1 < [1 1e1 021 821 811 ]
> 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2)
> 1 < Ext: 1 Progress Description: Call is not end-to-end ISDN; further call progress information may be available inband. (1) ]
> 1 -- Processing IE 8 (cs0, Cause)
> 1 -- Processing IE 30 (cs0, Progress Indicator)
> 1 NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Outgoing call Proceeding, peerstate Incoming Call Proceeding
> 1 > Protocol Discriminator: Q.931 (8) len=8
> 1 > Call Ref: len= 1 (reference 2/0x2) (Originator)
> 1 > Message type: DISCONNECT (69)
> 1 > [1 081 021 811 901 ]
> 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
> 1 > Ext: 1 Cause: Unknown (16), class = Normal Event (1) ]
> 1 < Protocol Discriminator: Q.931 (8) len=4
> 1 < Call Ref: len= 1 (reference 130/0x82) (Terminator)
> 1 < Message type: RELEASE (77)
> 1 NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request
> 1 > Protocol Discriminator: Q.931 (8) len=8
> 1 > Call Ref: len= 1 (reference 2/0x2) (Originator)
> 1 > Message type: RELEASE COMPLETE (90)
> 1 > [1 081 021 801 901 ]
> 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0)
> 1 > Ext: 1 Cause: Unknown (16), class = Normal Event (1) ]
> 1 NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
> 1 NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null

dubonjaja
16/12/2005, 16h34
bonjour,
j'ai la meme carte que toi sur un site et cela fonctionne tres bien.
jai installé asterisk@home 2.0 et j'ai suivi la procédure suivante
http://dondisperato.blogspot.com/
tu devrais essayer cette config car elle peut etre mise en place en 1H maxi si tu as une bonne machine.
sinon je peux t'envoyer mes fichiers de conf

cordialement
dubonjaja

jean007
16/12/2005, 17h10
Hello,
Merci pour ta réponse. Je connais le site et j'avais lu avant un de tes messages. Je l'ai testée sans plus de succès.
Peux-tu me dire quelle est ta configuration et me fournir tes fichier de configuration ? je donne ma langue au chat, très humblement !
Amicalement.

dubonjaja
16/12/2005, 18h37
re,
en fait je n'ai pas précisé mais la procédure de dondisperato comporte une erreur qui effectivement empeche la bonne installation de la carte


A@h 2.0
how to install hfc card

after unload asterisk and amportal whit
amportal stop

type "setup"
unselect zaptel in system service...
and set the lan

--->reboot<---

cd /usr/src
wget http://www.junghanns.net/downloads/bristuff-0.3.0-PRE-1.tar.gz
tar -zxvf bristuff-0.3.0-PRE-1.tar.gz
cd bristuff-0.3.0-PRE-1
./download.sh
cd zaphfc
ln -s /usr/src/kernels/2.6.9-22.EL-i686 /usr/src/linux-2.6
ln -s /usr/src/kernels/2.6.9-22.EL-i686 /usr/src/linux
cd ..
cd zaptel-1.2.0
make clean
make
make install
cd ..
cd libpri-1.2.0
make clean
make
make install
cd ..
cd zaphfc
make clean
make
make install

cp zaptel.conf /etc/zaptel.conf
------>yes<-------

nano /etc/rc.d/rc.local

at first add this line:

modprobe zaptel
insmod /usr/src/bristuff-0.3.0-PRE-1/zaphfc/zaphfc.ko
sleep 10
ztcfg -vv

nano /etc/asterisk/zapata.conf

this is my zapata:

[channels]
language=it
switchtype=euroisdn
;If you connect to a hicom PBX set your ISDN Numbering Plan Identifier to unknown.
pridialplan=local
prilocaldialplan=local


signalling = bri_cpe_ptmp
;signalling = fxs_ks
rxwink=300

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
nationalprefix = 0
internationalprefix = 00
faxdetect=incoming
group=0
callgroup=1
pickupgroup=1
immediate=yes
context=from-pstn
channel => 1-2

________________________________________
now you can recompile asterisk
cd /usr/src/bristuff-0.3.0-PRE-1/asterisk-1.2.0
make clean
make
make install

reboot...

jean007
16/12/2005, 21h50
Merci,

J'avais vu l'erreur et j'avais fait la correction. C'est pour cela que j'ai pu mener à bien mes tests de connexion. Mon impression face au trace me laisse penser que le probléme est d'ordre liaison avec FT. Tout ce qui est publier sur le net me confirme dans la configuration des cartes.