PDA

Voir la version complète : Appel interne vers une extension



zarhloul
25/03/2015, 21h13
Bonjour,

J'ai plusieurs extensions sur un Elastix, parmi ces extension il y a une que je n'arrive pas a l'appeler en interne, par contre elle peut émettre vers l'interne et l'externe, recevoir des appels de l'externe, mais pas en interne.

Ci-dessous une capture de CLI d'asterisk:

-- Executing [7252@international:1] Macro("SIP/6706-000051d8", "exten-vm,novm,7252") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/6706-000051d8", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/6706-000051d8", "AMPUSER=6706") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/6706-000051d8", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/6706-000051d8", "1?Set(REALCALLERIDNUM=6706)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/6706-000051d8", "AMPUSER=6706") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/6706-000051d8", "AMPUSERCIDNAME=Saad ZARHLOUL") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/6706-000051d8", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/6706-000051d8", "AMPUSERCID=6706") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/6706-000051d8", "CALLERID(all)="Saad ZARHLOUL" <6706>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/6706-000051d8", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/6706-000051d8", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/6706-000051d8", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/6706-000051d8", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/6706-000051d8", "CALLERID(number)=6706") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/6706-000051d8", "CALLERID(name)=Saad ZARHLOUL") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/6706-000051d8", "Using CallerID "Saad ZARHLOUL" <6706>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/6706-000051d8", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/6706-000051d8", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/6706-000051d8", "__EXTTOCALL=7252") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/6706-000051d8", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/6706-000051d8", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/6706-000051d8", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/6706-000051d8", "record-enable,7252,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/6706-000051d8", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/6706-000051d8", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/6706-000051d8", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/6706-000051d8", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/6706-000051d8", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:21] NoOp("SIP/6706-000051d8", "Recording enable for 7252") in new stack
-- Executing [s@macro-record-enable:22] Set("SIP/6706-000051d8", "CALLFILENAME=20150325-201100-vm2pbx1.eca.sip-1427310660.21342") in new stack
-- Executing [s@macro-record-enable:23] MixMonitor("SIP/6706-000051d8", "20150325-201100-vm2pbx1.eca.sip-1427310660.21342.wav,,") in new stack
-- Executing [s@macro-record-enable:24] Set("SIP/6706-000051d8", "CDR(userfield)=audio:20150325-201100-vm2pbx1.eca.sip-1427310660.21342.wav") in new stack
-- Executing [s@macro-record-enable:25] MacroExit("SIP/6706-000051d8", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/6706-000051d8", "dial-one,"",tr,7252") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/6706-000051d8", "DEXTEN=7252") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/6706-000051d8", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/6706-000051d8", "0?screen,1") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/6706-000051d8", "0?cf,1") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/6706-000051d8", "0?skip1") in new stack
-- Executing [s@macro-dial-one:6] Set("SIP/6706-000051d8", "DEXTEN=") in new stack
-- Executing [s@macro-dial-one:7] Set("SIP/6706-000051d8", "DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-dial-one:8] GotoIf("SIP/6706-000051d8", "1?nodial") in new stack
-- Goto (macro-dial-one,s,41)
-- Executing [s@macro-dial-one:41] ExecIf("SIP/6706-000051d8", "0?Set(DIALSTATUS=NOANSWER)") in new stack
-- Executing [s@macro-dial-one:42] NoOp("SIP/6706-000051d8", "Returned from dial-one with nothing to call and DIALSTATUS: BUSY") in new stack
-- Executing [s@macro-dial-one:43] MacroExit("SIP/6706-000051d8", "") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/6706-000051d8", "0?exit") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/6706-000051d8", "SV_DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/6706-000051d8", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/6706-000051d8", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/6706-000051d8", "DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/6706-000051d8", "Voicemail is 'novm'") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/6706-000051d8", "1?s-BUSY,1") in new stack
-- Goto (macro-exten-vm,s-BUSY,1)
-- Executing [s-BUSY@macro-exten-vm:1] NoOp("SIP/6706-000051d8", "Extension is reporting BUSY and not passing to Voicemail") in new stack
-- Executing [s-BUSY@macro-exten-vm:2] GotoIf("SIP/6706-000051d8", "0?exit,1") in new stack
-- Executing [s-BUSY@macro-exten-vm:3] PlayTones("SIP/6706-000051d8", "busy") in new stack
-- G.729 PLC
-- Executing [s-BUSY@macro-exten-vm:4] Busy("SIP/6706-000051d8", "20") in new stack
== Spawn extension (macro-exten-vm, s-BUSY, 4) exited non-zero on 'SIP/6706-000051d8' in macro 'exten-vm'
== Spawn extension (international, 7252, 1) exited non-zero on 'SIP/6706-000051d8'
-- Executing [h@international:1] Macro("SIP/6706-000051d8", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/6706-000051d8", "0?endmixmoncheck") in new stack
-- Executing [s@macro-hangupcall:2] NoOp("SIP/6706-000051d8", "TSM : WRITING QOS INFOS") in new stack
-- Executing [s@macro-hangupcall:3] System("SIP/6706-000051d8", "/bin/echo "25032015-20:11:00 # vm2pbx1.eca.sip-1427310660.21342 # ssrc=314276630;themssrc=0;lp=0;rxjitter=0.000000;r xcount=0;txjitter=0.000000;txcount=0;rlp=0;rtt=0.0 00000" >> /var/log/asterisk/qos.log") in new stack
== Begin MixMonitor Recording SIP/6706-000051d8
-- Executing [s@macro-hangupcall:4] Set("SIP/6706-000051d8", "MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/20150325-201100-vm2pbx1.eca.sip-1427310660.21342.wav") in new stack
-- Executing [s@macro-hangupcall:5] GotoIf("SIP/6706-000051d8", "1?defaultmixmondir") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] System("SIP/6706-000051d8", "test -e /var/spool/asterisk/monitor/20150325-201100-vm2pbx1.eca.sip-1427310660.21342.wav") in new stack
-- Executing [s@macro-hangupcall:8] NoOp("SIP/6706-000051d8", "SYSTEMSTATUS = SUCCESS") in new stack
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/6706-000051d8", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] NoOp("SIP/6706-000051d8", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:12] GotoIf("SIP/6706-000051d8", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,30)
-- Executing [s@macro-hangupcall:30] NoOp("SIP/6706-000051d8", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:31] GotoIf("SIP/6706-000051d8", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,36)
-- Executing [s@macro-hangupcall:36] NoOp("SIP/6706-000051d8", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:37] GotoIf("SIP/6706-000051d8", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,43)
-- Executing [s@macro-hangupcall:43] NoOp("SIP/6706-000051d8", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:44] GotoIf("SIP/6706-000051d8", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,47)
-- Executing [s@macro-hangupcall:47] GotoIf("SIP/6706-000051d8", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] GotoIf("SIP/6706-000051d8", "1?theend") in new stack
-- Goto (macro-hangupcall,s,52)
-- Executing [s@macro-hangupcall:52] AGI("SIP/6706-000051d8", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/6706-000051d8>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:53] Hangup("SIP/6706-000051d8", "") in new stack
== Spawn extension (macro-hangupcall, s, 53) exited non-zero on 'SIP/6706-000051d8' in macro 'hangupcall'
== Spawn extension (international, h, 1) exited non-zero on 'SIP/6706-000051d8'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording SIP/6706-000051d8

y a t -il quelqu'un qui peuvent m'aider ,

Cordialement

tanguyd
25/03/2015, 23h07
Bonjour

C'est quoi cette extension ? Un téléphone physique, un softphone ? As tu essayer de racorder autre chose sur ce compte SIP ?

Je pense qu'avec un debug SIP ( sip set debug ), il sera possible d'en voir plus.

zarhloul
26/03/2015, 11h36
Bonjour,

Merci pour la réponse, j'utilise un SNOM-710 pour cette extension, j'ai même testé avec un eybeam j'ai eu la même résultats.

Cordialement

zarhloul
27/03/2015, 13h18
Bonjour,

J'ai remarqué que sur cette extension que les statuts est differents des autres:

asterisk -rx 'core show hints' | grep -i 7252
7252@ext-local : SIP/7252 State:InUse Watchers 0

les autres extension j'ai State:Idle

J’espère que cette informations aide sur quelque chose.

Cordialement

tanguyd
27/03/2015, 18h15
J'ai l'impression qu'il y a un appel "fantome" qui traine"

Quand donne sip show channelstats ? Y'a t'il un cannal du plusieurs dizaines d'heures visible ?

Pour forcer un raccrochage, il est possible de faire un hangup request + TAB pour proposer la liste des cannaux en cours

Sinon, plus bourin un "core restart now" va aussi nettoyer ce qui traine

zarhloul
30/03/2015, 10h45
Salut,

je viens de savoir d’où viens le problème.

C'est dû a la mauvaise écriture des informations de l'extension sur la base /var/lib/asterisk/astdb.sqlite3.

Alors ce que j'ai fait, c'est que j'ai renommé la base a astdb.sqlite3 a astdb_old.sqlite3, après j'ai appliqué sur l'interface d'Elastix sur l’extension et la base a été crée a nouveau avec les bons informations, mais ce qui m'agace; c'est que je doit faire le tours de tous les extensions afin que l'elastix écris a nouveau les inforamtions des extensions sur la base.

y a t il un moyen facile de le faire ?

Cordialement