[AsteriskBrasil] Tronco SIP
Mario Donizeti da Silva
mariosilvasc em gmail.com
Quinta Janeiro 12 14:37:41 BRST 2012
Ola Thiago,
É possivel sem problemas, vc terá que criar as rotas no Digitro e no
Asterisk.
Em 12 de janeiro de 2012 14:35, Mario Donizeti da Silva <
mario.silva em digitro.com.br> escreveu:
> **
>
>
> -------- Mensagem original -------- Assunto: [AsteriskBrasil] Tronco SIP Data:
> Thu, 12 Jan 2012 14:10:08 -0200 De: Tiago Nascimento
> <nascimento.tiago85 em gmail.com> <nascimento.tiago85 em gmail.com> Responder
> a: asteriskbrasil em listas.asteriskbrasil.org Para:
> asteriskbrasil em listas.asteriskbrasil.org
>
> Pessoal, boa tarde.
>
> 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.
> Há a possibilidade de utilizar uma extensão do digitro para gerar chamadas
> externas através do asterisk utilizando o tronco SIP?
>
> Eu criei uma rota de saida utilizando o tronco SIP, e segue log:
>
> == Using SIP RTP TOS bits 184
> == Using SIP RTP CoS mark 5
> -- Executing [032271003 em from-internal:1] Macro("SIP/6001-00000011",
> "user-callerid,SKIPTTL,") in new stack
> -- Executing [s em macro-user-callerid:1] Set("SIP/6001-00000011",
> "AMPUSER=6001") in new stack
> -- Executing [s em macro-user-callerid:2] GotoIf("SIP/6001-00000011",
> "0?report") in new stack
> -- Executing [s em macro-user-callerid:3] ExecIf("SIP/6001-00000011",
> "1?Set(REALCALLERIDNUM=6001)") in new stack
> -- Executing [s em macro-user-callerid:4] Set("SIP/6001-00000011",
> "AMPUSER=6001") in new stack
> -- Executing [s em macro-user-callerid:5] Set("SIP/6001-00000011",
> "AMPUSERCIDNAME=6001") in new stack
> -- Executing [s em macro-user-callerid:6] GotoIf("SIP/6001-00000011",
> "0?report") in new stack
> -- Executing [s em macro-user-callerid:7] Set("SIP/6001-00000011",
> "AMPUSERCID=6001") in new stack
> -- Executing [s em macro-user-callerid:8] Set("SIP/6001-00000011",
> "CALLERID(all)="6001" <6001>") in new stack
> -- Executing [s em macro-user-callerid:9] GotoIf("SIP/6001-00000011",
> "1?continue") in new stack
> -- Goto (macro-user-callerid,s,18)
> -- Executing [s em macro-user-callerid:18] NoOp("SIP/6001-00000011",
> "Using CallerID "6001" <6001>") in new stack
> -- Executing [032271003 em from-internal:2] Set("SIP/6001-00000011",
> "_NODEST=") in new stack
> -- Executing [032271003 em from-internal:3] Macro("SIP/6001-00000011",
> "record-enable,6001,OUT,") in new stack
> -- Executing [s em macro-record-enable:1] GotoIf("SIP/6001-00000011",
> "1?check") in new stack
> -- Goto (macro-record-enable,s,4)
> -- Executing [s em macro-record-enable:4] ExecIf("SIP/6001-00000011",
> "0?MacroExit()") in new stack
> -- Executing [s em macro-record-enable:5] GotoIf("SIP/6001-00000011",
> "0?Group:OUT") in new stack
> -- Goto (macro-record-enable,s,16)
> -- Executing [s em macro-record-enable:16] GotoIf("SIP/6001-00000011",
> "0?IN") in new stack
> -- Executing [s em macro-record-enable:17] ExecIf("SIP/6001-00000011",
> "1?MacroExit()") in new stack
> -- Executing [032271003 em from-internal:4] Macro("SIP/6001-00000011",
> "dialout-trunk,2,32271003,,") in new stack
> -- Executing [s em macro-dialout-trunk:1] Set("SIP/6001-00000011",
> "DIAL_TRUNK=2") in new stack
> -- Executing [s em macro-dialout-trunk:2] GosubIf("SIP/6001-00000011",
> "0?sub-pincheck,s,1") in new stack
> -- Executing [s em macro-dialout-trunk:3] GotoIf("SIP/6001-00000011",
> "0?disabletrunk,1") in new stack
> -- Executing [s em macro-dialout-trunk:4] Set("SIP/6001-00000011",
> "DIAL_NUMBER=32271003") in new stack
> -- Executing [s em macro-dialout-trunk:5] Set("SIP/6001-00000011",
> "DIAL_TRUNK_OPTIONS=tr") in new stack
> -- Executing [s em macro-dialout-trunk:6] Set("SIP/6001-00000011",
> "OUTBOUND_GROUP=OUT_2") in new stack
> -- Executing [s em macro-dialout-trunk:7] GotoIf("SIP/6001-00000011",
> "0?nomax") in new stack
> -- Executing [s em macro-dialout-trunk:8] GotoIf("SIP/6001-00000011",
> "0?chanfull") in new stack
> -- Executing [s em macro-dialout-trunk:9] GotoIf("SIP/6001-00000011",
> "0?skipoutcid") in new stack
> -- Executing [s em macro-dialout-trunk:10] Set("SIP/6001-00000011",
> "DIAL_TRUNK_OPTIONS=") in new stack
> -- Executing [s em macro-dialout-trunk:11] Macro("SIP/6001-00000011",
> "outbound-callerid,2") in new stack
> -- Executing [s em macro-outbound-callerid:1]
> ExecIf("SIP/6001-00000011", "0?Set(CALLERPRES()=)") in new stack
> -- Executing [s em macro-outbound-callerid:2]
> ExecIf("SIP/6001-00000011", "0?Set(REALCALLERIDNUM=6001)") in new stack
> -- Executing [s em macro-outbound-callerid:3]
> GotoIf("SIP/6001-00000011", "1?normcid") in new stack
> -- Goto (macro-outbound-callerid,s,6)
> -- Executing [s em macro-outbound-callerid:6] Set("SIP/6001-00000011",
> "USEROUTCID=") in new stack
> -- Executing [s em macro-outbound-callerid:7] Set("SIP/6001-00000011",
> "EMERGENCYCID=") in new stack
> -- Executing [s em macro-outbound-callerid:8] Set("SIP/6001-00000011",
> "TRUNKOUTCID=") in new stack
> -- Executing [s em macro-outbound-callerid:9]
> GotoIf("SIP/6001-00000011", "1?trunkcid") in new stack
> -- Goto (macro-outbound-callerid,s,12)
> -- Executing [s em macro-outbound-callerid:12]
> ExecIf("SIP/6001-00000011", "0?Set(CALLERID(all)=)") in new stack
> -- Executing [s em macro-outbound-callerid:13]
> ExecIf("SIP/6001-00000011", "0?Set(CALLERID(all)=)") in new stack
> -- Executing [s em macro-outbound-callerid:14]
> ExecIf("SIP/6001-00000011", "0?Set(CALLERID(all)=)") in new stack
> -- Executing [s em macro-outbound-callerid:15]
> ExecIf("SIP/6001-00000011", "0?Set(CALLERPRES()=prohib_passed_screen)") in
> new stack
> -- Executing [s em macro-dialout-trunk:12] ExecIf("SIP/6001-00000011",
> "0?AGI(fixlocalprefix)") in new stack
> -- Executing [s em macro-dialout-trunk:13] Set("SIP/6001-00000011",
> "OUTNUM=32271003") in new stack
> -- Executing [s em macro-dialout-trunk:14] Set("SIP/6001-00000011",
> "custom=SIP/integra_digitro") in new stack
> -- Executing [s em macro-dialout-trunk:15] ExecIf("SIP/6001-00000011",
> "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
> -- Executing [s em macro-dialout-trunk:16] Macro("SIP/6001-00000011",
> "dialout-trunk-predial-hook,") in new stack
> -- Executing [s em macro-dialout-trunk-predial-hook:1]
> MacroExit("SIP/6001-00000011", "") in new stack
> -- Executing [s em macro-dialout-trunk:17] GotoIf("SIP/6001-00000011",
> "0?bypass,1") in new stack
> -- Executing [s em macro-dialout-trunk:18] GotoIf("SIP/6001-00000011",
> "0?customtrunk") in new stack
> -- Executing [s em macro-dialout-trunk:19] Dial("SIP/6001-00000011",
> "SIP/integra_digitro/32271003,300,") in new stack
> == Using SIP RTP TOS bits 184
> == Using SIP RTP CoS mark 5
> -- Called integra_digitro/32271003
> -- SIP/integra_digitro-00000012 is circuit-busy
> == Everyone is busy/congested at this time (1:0/1/0)
> -- Executing [s em macro-dialout-trunk:20] NoOp("SIP/6001-00000011",
> "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE =
> 1") in new stack
> -- Executing [s em macro-dialout-trunk:21] Goto("SIP/6001-00000011",
> "s-CONGESTION,1") in new stack
> -- Goto (macro-dialout-trunk,s-CONGESTION,1)
> -- Executing [s-CONGESTION em macro-dialout-trunk:1]
> Set("SIP/6001-00000011", "RC=1") in new stack
> -- Executing [s-CONGESTION em macro-dialout-trunk:2]
> Goto("SIP/6001-00000011", "1,1") in new stack
> -- Goto (macro-dialout-trunk,1,1)
> -- Executing [032271003 em from-internal:5] Macro("SIP/6001-00000011",
> "outisbusy,") in new stack
> -- Executing [s em macro-outisbusy:1] Progress("SIP/6001-00000011", "")
> in new stack
> -- Executing [s em macro-outisbusy:2] Playback("SIP/6001-00000011",
> "all-circuits-busy-now,noanswer") in new stack
> -- <SIP/6001-00000011> Playing 'all-circuits-busy-now.gsm' (language
> 'en')
> -- Executing [s em macro-outisbusy:3] Playback("SIP/6001-00000011",
> "pls-try-call-later,noanswer") in new stack
> -- <SIP/6001-00000011> Playing 'pls-try-call-later.gsm' (language 'en')
> -- Executing [s em macro-outisbusy:4] Macro("SIP/6001-00000011",
> "hangupcall") in new stack
> -- Executing [s em macro-hangupcall:1] GotoIf("SIP/6001-00000011",
> "1?skiprg") in new stack
> -- Goto (macro-hangupcall,s,4)
> -- Executing [s em macro-hangupcall:4] GotoIf("SIP/6001-00000011",
> "1?skipblkvm") in new stack
> -- Goto (macro-hangupcall,s,7)
> -- Executing [s em macro-hangupcall:7] GotoIf("SIP/6001-00000011",
> "1?theend") in new stack
> -- Goto (macro-hangupcall,s,9)
> -- Executing [s em macro-hangupcall:9] Hangup("SIP/6001-00000011", "")
> in new stack
> == Spawn extension (macro-hangupcall, s, 9) exited non-zero on
> 'SIP/6001-00000011' in macro 'hangupcall'
> == Spawn extension (macro-outisbusy, s, 4) exited non-zero on
> 'SIP/6001-00000011' in macro 'outisbusy'
> == Spawn extension (from-internal, 032271003, 5) exited non-zero on
> 'SIP/6001-00000011'
> -- Executing [h em from-internal:1] Macro("SIP/6001-00000011",
> "hangupcall") in new stack
> -- Executing [s em macro-hangupcall:1] GotoIf("SIP/6001-00000011",
> "1?skiprg") in new stack
> -- Goto (macro-hangupcall,s,4)
> -- Executing [s em macro-hangupcall:4] GotoIf("SIP/6001-00000011",
> "1?skipblkvm") in new stack
> -- Goto (macro-hangupcall,s,7)
> -- Executing [s em macro-hangupcall:7] GotoIf("SIP/6001-00000011",
> "1?theend") in new stack
> -- Goto (macro-hangupcall,s,9)
> -- Executing [s em macro-hangupcall:9] Hangup("SIP/6001-00000011", "")
> in new stack
> == Spawn extension (macro-hangupcall, s, 9) exited non-zero on
> 'SIP/6001-00000011' in macro 'hangupcall'
> == Spawn extension (from-internal, h, 1) exited non-zero on
> 'SIP/6001-00000011'
>
> Obrigado,
>
> Tiago Nascimento.
>
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20120112/660fafcc/attachment.htm
Mais detalhes sobre a lista de discussão AsteriskBrasil