本帖最後由 Qnewbie 於 2011-3-24 17:17 編輯
Sip show peers in the web emulator:
Name/username Host Dyn Nat ACL Port Status
588xxxxxx/588xxxxxx 211.150.115.14 N 10002 OK (344 ms)
Dial rule:
exten=_0086xx.,1,Macro(trunkdial-failover-0.3,${588xxxxxx}/0${EXTEN:4},,588xxxxxx,,${CALLERID(num)},${EXTEN:0})
Debug info from CLI:
[Mar 24 10:00:30] NOTICE[376]: chan_sip.c:13457 handle_response_peerpoke: Peer '588xxxxxx' is now Reachable. (347ms / 2000ms)
-- Executing [008675512345678@DLPN_internal:1] Macro("SIP/2000-0000000d", "trunkdial-failover-0.3|SIP/588xxxxxx/075512345678||588xxxxxx||2000|008675512345678") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] Set("SIP/2000-0000000d", "CALLERID(num)=2000") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:2] Set("SIP/2000-0000000d", "TOUCH_MIXMONITOR=2000-008675512345678-20110324-100436") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/2000-0000000d", "TOUCH_MIXMONITOR_FORMAT=wav49") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/2000-0000000d", "0?1-dial|1") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/2000-0000000d", "CALLERID(all)=") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/2000-0000000d", "1-dial|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/2000-0000000d", "SIP/588xxxxxx/075512345678||") in new stack
-- Called 588xxxxxx/075512345678
[Mar 24 10:04:37] WARNING[376]: chan_sip.c:13120 handle_response_invite: Received response: "Forbidden" from '"asterisk" <sip:asterisk@xxx.xxx.xxx.xxx>;tag=as2425966a'
-- SIP/588xxxxxx-0000000e is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf("SIP/2000-0000000d", "0 > 0 ?1-CONGESTION|1:1-out|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-out,1)
-- Executing [1-out@macro-trunkdial-failover-0.3:1] Hangup("SIP/2000-0000000d", "") in new stack
== Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited non-zero on 'SIP/2000-0000000d' in macro 'trunkdial-failover-0.3'
== Spawn extension (DLPN_internal, 008675512345678, 1) exited non-zero on 'SIP/2000-0000000d' |