this log in elastix 1 when avaya extension (249) try to call extension (399) on elasticx 2.
“5” is prefix for call from avaya to elastix 1 and “8” is perfix that used for call from elastix 1 to elastix 2 .
so avaya and extension(249) should call 58(399) to call elastix 2 ,
the log is :
== Using SIP VIDEO TOS bits 136
== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [8399@from-internal:1] Macro(“SIP/FXO-0000011d”, “user-callerid,SKIPTTL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/FXO-0000011d”, “AMPUSER=249”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/FXO-0000011d”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/FXO-0000011d”, “1?Set(REALCALLERIDNUM=249)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/FXO-0000011d”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/FXO-0000011d”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/FXO-0000011d”, “1?report”) in new stack
– Goto (macro-user-callerid,s,10)
– Executing [s@macro-user-callerid:10] GotoIf(“SIP/FXO-0000011d”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [s@macro-user-callerid:19] Set(“SIP/FXO-0000011d”, “CALLERID(number)=249”) in new stack
– Executing [s@macro-user-callerid:20] Set(“SIP/FXO-0000011d”, “CALLERID(name)=Bahari”) in new stack
– Executing [s@macro-user-callerid:21] NoOp(“SIP/FXO-0000011d”, “Using CallerID “Bahari” <249>”) in new stack
– Executing [8399@from-internal:2] NoOp(“SIP/FXO-0000011d”, “Calling Out Route: GSSTech_ext”) in new stack
– Executing [8399@from-internal:3] Set(“SIP/FXO-0000011d”, “MOHCLASS=default”) in new stack
– Executing [8399@from-internal:4] Set(“SIP/FXO-0000011d”, “_NODEST=”) in new stack
– Executing [8399@from-internal:5] Macro(“SIP/FXO-0000011d”, “record-enable,OUT,”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/FXO-0000011d”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] ExecIf(“SIP/FXO-0000011d”, “1?MacroExit()”) in new stack
– Executing [8399@from-internal:6] Macro(“SIP/FXO-0000011d”, “dialout-trunk,3,399,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/FXO-0000011d”, “DIAL_TRUNK=3”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/FXO-0000011d”, “0?sub-pincheck,s,1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/FXO-0000011d”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/FXO-0000011d”, “DIAL_NUMBER=399”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/FXO-0000011d”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/FXO-0000011d”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/FXO-0000011d”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/FXO-0000011d”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/FXO-0000011d”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/FXO-0000011d”, “outbound-callerid,3”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/FXO-0000011d”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/FXO-0000011d”, “0?Set(REALCALLERIDNUM=249)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/FXO-0000011d”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/FXO-0000011d”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/FXO-0000011d”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/FXO-0000011d”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/FXO-0000011d”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/FXO-0000011d”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/FXO-0000011d”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/FXO-0000011d”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/FXO-0000011d”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/FXO-0000011d”, “0?sub-flp-3,s,1”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/FXO-0000011d”, “OUTNUM=399”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/FXO-0000011d”, “custom=SIP/GSSTech”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/FXO-0000011d”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/FXO-0000011d”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/FXO-0000011d”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/FXO-0000011d”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/FXO-0000011d”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/FXO-0000011d”, “SIP/GSSTech/399,300,”) in new stack
== Using SIP VIDEO TOS bits 136
== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/GSSTech/399
– SIP/GSSTech-0000011e is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:20] NoOp(“SIP/FXO-0000011d”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21”) in new stack
– Executing [s@macro-dialout-trunk:21] Goto(“SIP/FXO-0000011d”, “s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“SIP/FXO-0000011d”, “RC=21”) in new stack
– Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“SIP/FXO-0000011d”, “21,1”) in new stack
– Goto (macro-dialout-trunk,21,1)
– Executing [21@macro-dialout-trunk:1] Goto(“SIP/FXO-0000011d”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] GotoIf(“SIP/FXO-0000011d”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [continue@macro-dialout-trunk:3] NoOp(“SIP/FXO-0000011d”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:4] Set(“SIP/FXO-0000011d”, “CALLERID(number)=”) in new stack
– Executing [8399@from-internal:7] Macro(“SIP/FXO-0000011d”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/FXO-0000011d”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/FXO-0000011d”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/FXO-0000011d”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“SIP/FXO-0000011d”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/FXO-0000011d> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)
– <SIP/FXO-0000011d> Playing ‘pls-try-call-later.gsm’ (language ‘en’)
– Executing [s@macro-outisbusy:5] Congestion(“SIP/FXO-0000011d”, “20”) in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/FXO-0000011d’ in macro ‘outisbusy’
== Spawn extension (from-internal, 8399, 7) exited non-zero on ‘SIP/FXO-0000011d’
– Executing [h@from-internal:1] Macro(“SIP/FXO-0000011d”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/FXO-0000011d”, “1?endmixmoncheck”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] NoOp(“SIP/FXO-0000011d”, “End of MIXMON check”) in new stack
– Executing [s@macro-hangupcall:10] GotoIf(“SIP/FXO-0000011d”, “1?nomeetmemon”) in new stack
– Goto (macro-hangupcall,s,28)
– Executing [s@macro-hangupcall:28] NoOp(“SIP/FXO-0000011d”, “End of MEETME check”) in new stack
– Executing [s@macro-hangupcall:29] GotoIf(“SIP/FXO-0000011d”, “1?noautomon”) in new stack
– Goto (macro-hangupcall,s,34)
– Executing [s@macro-hangupcall:34] NoOp(“SIP/FXO-0000011d”, “TOUCH_MONITOR_OUTPUT=”) in new stack
– Executing [s@macro-hangupcall:35] GotoIf(“SIP/FXO-0000011d”, “1?noautomon2”) in new stack
– Goto (macro-hangupcall,s,41)
– Executing [s@macro-hangupcall:41] NoOp(“SIP/FXO-0000011d”, “MONITOR_FILENAME=”) in new stack
– Executing [s@macro-hangupcall:42] GotoIf(“SIP/FXO-0000011d”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,45)
– Executing [s@macro-hangupcall:45] GotoIf(“SIP/FXO-0000011d”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,48)
– Executing [s@macro-hangupcall:48] GotoIf(“SIP/FXO-0000011d”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,50)
– Executing [s@macro-hangupcall:50] AGI(“SIP/FXO-0000011d”, “hangup.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
– <SIP/FXO-0000011d>AGI Script hangup.agi completed, returning 0
– Executing [s@macro-hangupcall:51] Hangup(“SIP/FXO-0000011d”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on ‘SIP/FXO-0000011d’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/FXO-0000011d’