Ну как всегда не без проблем
Есть FreeBSD 7.0 + Asterisk 1.4.25 + Asterisk GUI
Проблема.
Транк SIP поднимаеться,
а при звонке не происходит соединение с sip.comtube.ru
на работоспособность не грешу так как подключены sipnet.ru и nonoh.net
nonoh.net - работает
-- Executing [874951000000@DLPN_DialPlan_MY:1] Macro("SIP/6000-2a139000", "trunkdial-failover-0.3|SIP/localhost2005/74951000000||localhost2005|201638") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/6000-2a139000", "0?1-fmsetcid|1") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a139000", "0?1-setgbobname|1") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/6000-2a139000", "CALLERID(num)=") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/6000-2a139000", "0?1-dial|1") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/6000-2a139000", "CALLERID(all)=localhost2005") in new stack
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/6000-2a139000", "1-dial|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
[Aug 27 11:03:25] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Goto
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/6000-2a139000", "SIP/localhost2005/74951000000") in new stack
-- Called localhost2005/74951000000
-- SIP/localhost2005-29324000 is making progress passing it to SIP/6000-2a139000
-- SIP/localhost2005-29324000 answered SIP/6000-2a139000
[Aug 27 11:04:00] WARNING[23681]: chan_sip.c:13295 handle_response: Host '194.120.0.198' does not implement 'UPDATE'
sipnet.ru - работает
-- Executing [974951000000@DLPN_DialPlan_MY:1] Macro("SIP/6000-2a11a000", "trunkdial-failover-0.3|SIP/3241382/74951000000||3241382|localhost2005") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/6000-2a11a000", "0?1-fmsetcid|1") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a11a000", "0?1-setgbobname|1") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/6000-2a11a000", "CALLERID(num)=") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/6000-2a11a000", "0?1-dial|1") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/6000-2a11a000", "CALLERID(all)=3241382") in new stack
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/6000-2a11a000", "1-dial|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
[Aug 27 11:30:04] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Goto
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/6000-2a11a000", "SIP/3241382/74951000000") in new stack
-- Called 3241382/74951000000
-- SIP/3241382-2a146000 is ringing
-- SIP/3241382-2a146000 is making progress passing it to SIP/6000-2a11a000
-- SIP/3241382-2a146000 answered SIP/6000-2a11a000
== Spawn extension (macro-trunkdial-failover-0.3, 1-dial, 1) exited non-zero on 'SIP/6000-2a11a000' in macro 'trunkdial-failover-0.3'
== Spawn extension (DLPN_DialPlan_MY, 974951000000, 1) exited non-zero on 'SIP/6000-2a11a000'
comtube.ru - НЕ работает
== Parsing '/usr/local/etc/asterisk/asterisk.conf': Found
== Parsing '/usr/local/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.25 currently running on ns (pid = 23681)
Verbosity is at least 9
-- Executing [874951000000@DLPN_DialPlan_MY:1] Macro("SIP/6000-2a11a000", "trunkdial-failover-0.3|SIP/201638/74951000000||201638|201638") in new stack
-- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/6000-2a11a000", "0?1-fmsetcid|1") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a11a000", "0?1-setgbobname|1") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/6000-2a11a000", "CALLERID(num)=") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/6000-2a11a000", "0?1-dial|1") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/6000-2a11a000", "CALLERID(all)=") in new stack
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Set
-- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/6000-2a11a000", "1-dial|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Goto
-- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/6000-2a11a000", "SIP/201638/74951000000") in new stack
-- Called 201638/74951000000
-- Got SIP response 415 "Unsupported Media Type" back from 62.117.120.98
== Everyone is busy/congested at this time (1:0/0/1)
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Dial
-- Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6000-2a11a000", "0 > 0 ?1-CHANUNAVAIL|1:1-out|1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-out,1)
[Aug 27 11:09:20] DEBUG[23681]: app_macro.c:379 _macro_exec: Executed application: Gotoif
-- Executing [1-out@macro-trunkdial-failover-0.3:1] Hangup("SIP/6000-2a11a000", "") in new stack
== Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited non-zero on 'SIP/6000-2a11a000' in macro 'trunkdial-failover-0.3'
== Spawn extension (DLPN_DialPlan_MY, 874951000000, 1) exited non-zero on 'SIP/6000-2a11a000'