Pessoal, boa tarde.<br><br>Eu tenho um asterisk registrado em um Digitro através de um tronco SIP (está atrás do digitro). Origino e recebo chamados entre o Asterisk x Digitro normalmente. <br>Há a possibilidade de utilizar uma extensão do digitro para gerar chamadas externas através do asterisk utilizando o tronco SIP?<br>
<br>Eu criei uma rota de saida utilizando o tronco SIP, e segue log:<br><br> == Using SIP RTP TOS bits 184<br> == Using SIP RTP CoS mark 5<br> -- Executing [032271003@from-internal:1] Macro("SIP/6001-00000011", "user-callerid,SKIPTTL,") in new stack<br>
-- Executing [s@macro-user-callerid:1] Set("SIP/6001-00000011", "AMPUSER=6001") in new stack<br> -- Executing [s@macro-user-callerid:2] GotoIf("SIP/6001-00000011", "0?report") in new stack<br>
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/6001-00000011", "1?Set(REALCALLERIDNUM=6001)") in new stack<br> -- Executing [s@macro-user-callerid:4] Set("SIP/6001-00000011", "AMPUSER=6001") in new stack<br>
-- Executing [s@macro-user-callerid:5] Set("SIP/6001-00000011", "AMPUSERCIDNAME=6001") in new stack<br> -- Executing [s@macro-user-callerid:6] GotoIf("SIP/6001-00000011", "0?report") in new stack<br>
-- Executing [s@macro-user-callerid:7] Set("SIP/6001-00000011", "AMPUSERCID=6001") in new stack<br> -- Executing [s@macro-user-callerid:8] Set("SIP/6001-00000011", "CALLERID(all)="6001" <6001>") in new stack<br>
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/6001-00000011", "1?continue") in new stack<br> -- Goto (macro-user-callerid,s,18)<br> -- Executing [s@macro-user-callerid:18] NoOp("SIP/6001-00000011", "Using CallerID "6001" <6001>") in new stack<br>
-- Executing [032271003@from-internal:2] Set("SIP/6001-00000011", "_NODEST=") in new stack<br> -- Executing [032271003@from-internal:3] Macro("SIP/6001-00000011", "record-enable,6001,OUT,") in new stack<br>
-- Executing [s@macro-record-enable:1] GotoIf("SIP/6001-00000011", "1?check") in new stack<br> -- Goto (macro-record-enable,s,4)<br> -- Executing [s@macro-record-enable:4] ExecIf("SIP/6001-00000011", "0?MacroExit()") in new stack<br>
-- Executing [s@macro-record-enable:5] GotoIf("SIP/6001-00000011", "0?Group:OUT") in new stack<br> -- Goto (macro-record-enable,s,16)<br> -- Executing [s@macro-record-enable:16] GotoIf("SIP/6001-00000011", "0?IN") in new stack<br>
-- Executing [s@macro-record-enable:17] ExecIf("SIP/6001-00000011", "1?MacroExit()") in new stack<br> -- Executing [032271003@from-internal:4] Macro("SIP/6001-00000011", "dialout-trunk,2,32271003,,") in new stack<br>
-- Executing [s@macro-dialout-trunk:1] Set("SIP/6001-00000011", "DIAL_TRUNK=2") in new stack<br> -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/6001-00000011", "0?sub-pincheck,s,1") in new stack<br>
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/6001-00000011", "0?disabletrunk,1") in new stack<br> -- Executing [s@macro-dialout-trunk:4] Set("SIP/6001-00000011", "DIAL_NUMBER=32271003") in new stack<br>
-- Executing [s@macro-dialout-trunk:5] Set("SIP/6001-00000011", "DIAL_TRUNK_OPTIONS=tr") in new stack<br> -- Executing [s@macro-dialout-trunk:6] Set("SIP/6001-00000011", "OUTBOUND_GROUP=OUT_2") in new stack<br>
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/6001-00000011", "0?nomax") in new stack<br> -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/6001-00000011", "0?chanfull") in new stack<br>
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/6001-00000011", "0?skipoutcid") in new stack<br> -- Executing [s@macro-dialout-trunk:10] Set("SIP/6001-00000011", "DIAL_TRUNK_OPTIONS=") in new stack<br>
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/6001-00000011", "outbound-callerid,2") in new stack<br> -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/6001-00000011", "0?Set(CALLERPRES()=)") in new stack<br>
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/6001-00000011", "0?Set(REALCALLERIDNUM=6001)") in new stack<br> -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/6001-00000011", "1?normcid") in new stack<br>
-- Goto (macro-outbound-callerid,s,6)<br> -- Executing [s@macro-outbound-callerid:6] Set("SIP/6001-00000011", "USEROUTCID=") in new stack<br> -- Executing [s@macro-outbound-callerid:7] Set("SIP/6001-00000011", "EMERGENCYCID=") in new stack<br>
-- Executing [s@macro-outbound-callerid:8] Set("SIP/6001-00000011", "TRUNKOUTCID=") in new stack<br> -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/6001-00000011", "1?trunkcid") in new stack<br>
-- Goto (macro-outbound-callerid,s,12)<br> -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/6001-00000011", "0?Set(CALLERID(all)=)") in new stack<br> -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/6001-00000011", "0?Set(CALLERID(all)=)") in new stack<br>
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/6001-00000011", "0?Set(CALLERID(all)=)") in new stack<br> -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/6001-00000011", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack<br>
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/6001-00000011", "0?AGI(fixlocalprefix)") in new stack<br> -- Executing [s@macro-dialout-trunk:13] Set("SIP/6001-00000011", "OUTNUM=32271003") in new stack<br>
-- Executing [s@macro-dialout-trunk:14] Set("SIP/6001-00000011", "custom=SIP/integra_digitro") in new stack<br> -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/6001-00000011", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack<br>
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/6001-00000011", "dialout-trunk-predial-hook,") in new stack<br> -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/6001-00000011", "") in new stack<br>
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/6001-00000011", "0?bypass,1") in new stack<br> -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/6001-00000011", "0?customtrunk") in new stack<br>
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/6001-00000011", "SIP/integra_digitro/32271003,300,") in new stack<br> == Using SIP RTP TOS bits 184<br> == Using SIP RTP CoS mark 5<br> -- Called integra_digitro/32271003<br>
-- SIP/integra_digitro-00000012 is circuit-busy<br> == Everyone is busy/congested at this time (1:0/1/0)<br> -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/6001-00000011", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 1") in new stack<br>
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/6001-00000011", "s-CONGESTION,1") in new stack<br> -- Goto (macro-dialout-trunk,s-CONGESTION,1)<br> -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/6001-00000011", "RC=1") in new stack<br>
-- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/6001-00000011", "1,1") in new stack<br> -- Goto (macro-dialout-trunk,1,1)<br> -- Executing [032271003@from-internal:5] Macro("SIP/6001-00000011", "outisbusy,") in new stack<br>
-- Executing [s@macro-outisbusy:1] Progress("SIP/6001-00000011", "") in new stack<br> -- Executing [s@macro-outisbusy:2] Playback("SIP/6001-00000011", "all-circuits-busy-now,noanswer") in new stack<br>
-- <SIP/6001-00000011> Playing 'all-circuits-busy-now.gsm' (language 'en')<br> -- Executing [s@macro-outisbusy:3] Playback("SIP/6001-00000011", "pls-try-call-later,noanswer") in new stack<br>
-- <SIP/6001-00000011> Playing 'pls-try-call-later.gsm' (language 'en')<br> -- Executing [s@macro-outisbusy:4] Macro("SIP/6001-00000011", "hangupcall") in new stack<br> -- Executing [s@macro-hangupcall:1] GotoIf("SIP/6001-00000011", "1?skiprg") in new stack<br>
-- Goto (macro-hangupcall,s,4)<br> -- Executing [s@macro-hangupcall:4] GotoIf("SIP/6001-00000011", "1?skipblkvm") in new stack<br> -- Goto (macro-hangupcall,s,7)<br> -- Executing [s@macro-hangupcall:7] GotoIf("SIP/6001-00000011", "1?theend") in new stack<br>
-- Goto (macro-hangupcall,s,9)<br> -- Executing [s@macro-hangupcall:9] Hangup("SIP/6001-00000011", "") in new stack<br> == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/6001-00000011' in macro 'hangupcall'<br>
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/6001-00000011' in macro 'outisbusy'<br> == Spawn extension (from-internal, 032271003, 5) exited non-zero on 'SIP/6001-00000011'<br>
-- Executing [h@from-internal:1] Macro("SIP/6001-00000011", "hangupcall") in new stack<br> -- Executing [s@macro-hangupcall:1] GotoIf("SIP/6001-00000011", "1?skiprg") in new stack<br>
-- Goto (macro-hangupcall,s,4)<br> -- Executing [s@macro-hangupcall:4] GotoIf("SIP/6001-00000011", "1?skipblkvm") in new stack<br> -- Goto (macro-hangupcall,s,7)<br> -- Executing [s@macro-hangupcall:7] GotoIf("SIP/6001-00000011", "1?theend") in new stack<br>
-- Goto (macro-hangupcall,s,9)<br> -- Executing [s@macro-hangupcall:9] Hangup("SIP/6001-00000011", "") in new stack<br> == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/6001-00000011' in macro 'hangupcall'<br>
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/6001-00000011'<br><br>Obrigado,<br><br>Tiago Nascimento.<br>