PDA

Voir la version complète : Elastix: peux emettre des appels mais pas en recevoir



Persee
30/09/2010, 09h28
Bonjour,

Je suis entrain de tester Elastix 2.0 sur un serveur avec une carte Digium B410P.

Je peux emettre des appels via la carte digium, mais je n'arrive pas a en recevoir.

Quelqu'un a une idée de ce que ca peut etre?

Bien à vous,

Persee

cedricscha
30/09/2010, 09h30
Hello,

il nous faudra pour pouvoir t'aider, la config de la carte, du dialplan et un extrait de la CLI en verbose max, durant une emission et une reception d'appels.

Persee
30/09/2010, 09h53
Bonjour,

Merci de ta reponse.

ci dessou tu trouveras les fichiers et les tests demandés.



# Autogenerated by /usr/sbin/dahdi_genconf on Wed Sep 29 17:30:27 2010
# Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER)
span=1,1,0,ccs,ami
# termtype: te
bchan=1-2
hardhdlc=3
echocanceller=oslec,1-2

# Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2"
span=2,2,0,ccs,ami
# termtype: te
bchan=4-5
hardhdlc=6
echocanceller=oslec,4-5

# Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3"
span=3,3,0,ccs,ami
# termtype: te
bchan=7-8
hardhdlc=9
echocanceller=oslec,7-8

# Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4"
span=4,4,0,ccs,ami
# termtype: te
bchan=10-11
hardhdlc=12
echocanceller=oslec,10-11

# Global data

loadzone = us
defaultzone = us


dahdi-channels.conf



; Autogenerated by /usr/sbin/dahdi_genconf on Wed Sep 29 17:30:27 2010

; Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 1-2
context = default
group = 63

; Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2"
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 4-5
context = default
group = 63

; Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3"
group=0,13
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 7-8
context = default
group = 63

; Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4"
group=0,14
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 10-11
context = default


chan_dahdi.conf



; Auto-generated by /usr/sbin/hardware_detector
[trunkgroups]

[channels]
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1

;Uncomment these lines if you have problems with the disconection of your analog lines
;busydetect=yes
;busycount=3


immediate=no

#include dahdi-channels.conf
#include chan_dahdi_additional.conf


CLI quand j'emets un appel


== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [90473869751@from-internal:1] Macro("SIP/1127-00000003", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/1127-00000003", "AMPUSER=1127") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/1127-00000003", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/1127-00000003", "1?Set(REALCALLERIDNUM=1127)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/1127-00000003", "AMPUSER=1127") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/1127-00000003", "AMPUSERCIDNAME=Manu IT") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/1127-00000003", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/1127-00000003", "AMPUSERCID=1127") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/1127-00000003", "CALLERID(all)="Manu IT" <1127>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/1127-00000003", "1?Set(CHANNEL(language)=FR)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/1127-00000003", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/1127-00000003", "Using CallerID "Manu IT" <1127>") in new stack
-- Executing [90473869751@from-internal:2] Set("SIP/1127-00000003", "_NODEST=") in new stack
-- Executing [90473869751@from-internal:3] Macro("SIP/1127-00000003", "record-enable,1127,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/1127-00000003", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/1127-00000003", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/1127-00000003", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/1127-00000003", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/1127-00000003", "1?MacroExit()") in new stack
-- Executing [90473869751@from-internal:4] Macro("SIP/1127-00000003", "dialout-trunk,1,0473869751,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/1127-00000003", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1127-00000003", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1127-00000003", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/1127-00000003", "DIAL_NUMBER=0473869751") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/1127-00000003", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/1127-00000003", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1127-00000003", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1127-00000003", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/1127-00000003", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/1127-00000003", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1127-00000003", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1127-00000003", "0?Set(REALCALLERIDNUM=1127)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1127-00000003", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/1127-00000003", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/1127-00000003", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/1127-00000003", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1127-00000003", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1127-00000003", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1127-00000003", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1127-00000003", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1127-00000003", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/1127-00000003", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/1127-00000003", "OUTNUM=0473869751") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/1127-00000003", "custom=DAHDI/g0") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1127-00000003", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/1127-00000003", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1127-00000003", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1127-00000003", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1127-00000003", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/1127-00000003", "DAHDI/g0/0473869751,300,") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g0/0473869751
-- DAHDI/1-1 is proceeding passing it to SIP/1127-00000003
-- DAHDI/1-1 is ringing
-- DAHDI/1-1 answered SIP/1127-00000003


Il n'y a rien quand j'essaye d'appeller le numero externe via mon gsm ou mon telephone fixe.

as tu une idée?

Persee
30/09/2010, 19h03
En faite, ce qu'il me semble bizzar, c'est que je peux emettre des appels et pas en recevoir...

Quand j'essaye de recevoir un appel, il n'y a rien dans la CLI, et la ligne sonne occupé. cependant, si c'etait un probleme de configuration dans mon fichier extensions.conf, il devrait me mettre un message du genre "extension pas trouvé" ou quelque chose comme ca non?

Franchement, la, je seche... :)

hb22
30/09/2010, 19h29
J'ai cela en plus dans mon chan_dahdi


; Ajout le 23/07/2008
callerid=asreceived
pridialplan=unknown
prilocaldialplan=unknown
nationalprefix=0
internationalprefix=00
echotraining=no ; Si yes => grésillement dans le téléphone
immediate=no
language=fr

Persee
30/09/2010, 20h52
Merci de ta reponse.

J'ai ajouté les ligne a mon fichier chan_dahdi.conf, mais j'ai toujours le meme problème.

Il semblerai que soit Asterisk, soit la carte B410p ne detecte pas l'appel entrant.

Est ce qu'il y a des reglages particuliers a faire au niveau de la carte?

Bien vous,

Persee

Persee
30/09/2010, 20h58
Peut etre une piste, quand dans la CLI je tape "DAHDI RESTART" ca me ramene ca comme message.



BETOSPHONE03*CLI> dahdi restart
Destroying channels and reloading DAHDI configuration.
== Unregistered channel -2
== Unregistered channel 1
== Unregistered channel 2
== Unregistered channel 4
== Unregistered channel 5
== Unregistered channel 7
== Unregistered channel 8
== Unregistered channel 10
== Unregistered channel 11
== Parsing '/etc/asterisk/chan_dahdi.conf': == Found
== Parsing '/etc/asterisk/dahdi-channels.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_additional.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
-- Reconfigured channel 1, ISDN BRI Point to Point signalling
-- Reconfigured channel 2, ISDN BRI Point to Point signalling
-- Reconfigured channel 4, ISDN BRI Point to Point signalling
-- Reconfigured channel 5, ISDN BRI Point to Point signalling
-- Reconfigured channel 7, ISDN BRI Point to Point signalling
-- Reconfigured channel 8, ISDN BRI Point to Point signalling
-- Reconfigured channel 10, ISDN BRI Point to Point signalling
-- Reconfigured channel 11, ISDN BRI Point to Point signalling
-- Automatically generated pseudo channel
== Starting D-Channel on span 1
== Starting D-Channel on span 2
== Starting D-Channel on span 3
== Starting D-Channel on span 4
== Primary D-Channel on span 1 up
BETOSPHONE03*CLI>



pourquoi est ce qu'il me ramene le message:
" -- Reconfigured channel 1, ISDN BRI Point to Point signalling"
theoriquement ca devrait etre Point to multipoint puisque je suis connecte a un T0 non?

Bien à vous,

Persee

fastm3
30/09/2010, 21h08
avec oslec, echotraining n'est pas supporté donc ca change rien.
Par contre, il faut mettre echocancel à 256, 512 ou 1024. ( longueur de la tail en ms *8 )

Essai avec

signalling=bri_cpe_ptmppour cela, la methode clean est de modifier la valeur dans /etc/dahdi/genconf_parameters et de regenerer la conf dahdi: dahdi_genconf.
Il faut reloader dahdi bien sur. Reboot si tu peux pour etre sur.

Si toujours pb, donne deja l'output de

dialplan show from-pstn
dahdi show channels
dahdi show status
Fastm3.

Persee
30/09/2010, 22h25
Merci pour ta reponse Fastme.

Pour aussi dire, tu m'as mis sur le bon chemin. En faite j'avais deux fichiers dans /etc/dahdi, un genconf_parameters et un genconf_parameters.samples.
J'ai renomme genconf_parameters.samples en genconf_parameters, j'ai redetecte ma carte, et maintenant ca marche nickel.

Merci a tous pour votre aide.

Bien à vous,

Persee

ddommii
21/10/2010, 15h11
Bonjour Percee,

Je viens de voir que tu as réussi l'installation d'Elastix.

J'ai un système en fonction qui tourne sous asterisk en ligne de commandes, mais le système n'est pas stable et j'ai des déconnections inopinées=> coupure de communications, déconnection d'asterisk.

Je souhaite passer à Elastix, mais je ne trouve pas de tuto pour la version 2.0.2.
Si tu as réussi, je devine que tu as trouvé un tuto ou un manuel pour tes config.
J'ai installé un pc avec Elastix mais, je ne sais par où commencer.
J'ai ajouté deux extensions, mais déjà là, problème, ils ne se connectent pas sur le serveur.
Je serai donc très heureux de trouver un tutoriel complet.
Si tu as une piste...
Merci.
Dominique

cedricscha
21/10/2010, 15h24
Bonjour Percee,

Je viens de voir que tu as réussi l'installation d'Elastix.

J'ai un système en fonction qui tourne sous asterisk en ligne de commandes, mais le système n'est pas stable et j'ai des déconnections inopinées=> coupure de communications, déconnection d'asterisk.



Si tu n'arrives pas à régler cela, je ne suis pas sur que ce seras mieux avec elastix......

Enfin, ton problème, ne concerne pas Persee, ouvre ton propre thread, ton sujet, n'a rien à voir avec le problème de ce thread.