[AsteriskBrasil] Comando Originate (Asterisk Manager)

Felipe R. Pasa feliperp3 em gmail.com
Segunda Março 24 17:30:40 BRT 2008


vc consegue via 1511 ou via 1551???

2008/3/24, Wagner Freitas <wgfreitas em hotmail.com>:
>
>  Olá pessoal, estou desenvolvendo uma pequena aplicação para gerar chamadas
> por meio do Asterisk Manager (TCP 5038).
>
>  Via Telnet, executei,
>
>  Action: Login
>  Username: admin
>  Secret: amp111
>
>  e a resposta foi OK.
>  Mas ao solicitar ação do tipo Originate retorna erro,
>
>  Action: Originate
>  Context: ext-local
>  Exten: 03188888888
>  Priority: 1
>  Channel: SIP/1551
>
>  e retorna,
>
>  Response: Error
> Message: Originate failed
>
>  Really destroying SIP dialog
> '07538cb1188b600846298c407c6f840c em 127.0.0.1' Method: INVITE
>
>  Mas via X-Lite consigo realizar a chamada sem problema (via 1511).
>  Alguém sabe me informar onde estou falhando? Obrigado. Um abraço a todos.
>  A seguir colo o conteúdo dos arquivos de configuração do Asterisk.
>
>
>
>  sip.conf
> --
> [general]
> port=5060 ;Port to bind to (SIP is 5060)
> bindaddr=0.0.0.0 ;Address to bind to (all addresses on machines)
> srvlookup=yes
> register =>
> USUARIO_VONO:SENHA_VONO em vono.net.br:5060/USUARIO_VONO
>  #include sip_nat.conf
> #include sip_custom.conf
> #include sip_additional.conf
>
>
>
>  sip_additional.conf
> --
> [1511]
> username=1511
> secret=123
> type=friend
> host=dynamic
> callerid=1511 <1511>
> context=ext-local
>  [1512]
> username=1512
> secret=123
> type=friend
> host=dynamic
> callerid=1512 <1512>
> context=ext-local
>  [1513]
> username=1513
> secret=123
> type=friend
> host=dynamic
> callerid=1513 <1513>
> context=ext-local
>  [USUARIO_VONO]
> type=peer
> username=USUARIO_VONO
> secret=SENHA_VONO
> fromuser=USUARIO_VONO
> fromdomain=vono.net.br
> context=gvt
> disallow=all
> allow=alaw
> allow=ilbc
> allow=ulaw
> host=vono.net.br
> insecure=very
> qualify=no
> port=5060
> aut=md5
> nat=yes
> canreinvite=no
> dtmfmode=rfc2833
> allow=gsm
>
>
>
>  extensions.conf
> --
> [ext-local]
> exten => 1511,1,Dial(SIP/1511,20)
> exten => 1511,2,Hangup
>  exten => 1512,1,Dial(SIP/1512,20)
> exten => 1512,2,Hangup
>  exten => 1513,1,Dial(SIP/1513,20)
> exten => 1513,2,Hangup
>  exten =>
> _0.,1,Dial(SIP/${EXTEN}@USUARIO_VONO,60,A(test)S(1))
> exten => _0.,2,Hangup
>  [gvt]
> exten => USUARIO_VONO,1,Dial(SIP/1511,20)
> exten => USUARIO_VONO,2,Hangup
>
> ________________________________
> Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live
> Search Maps! Experimente já!
> _______________________________________________
>  Compre uma camiseta da AsteriskBrasil.org!
>             http://www.voipmania.com.br
>                 == VoIPMania.com.br ==
>
>  _______________________________________________
>  LIsta de discussões AsteriskBrasil.org
>  AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>


More information about the AsteriskBrasil mailing list