<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Olá pessoal, estou desenvolvendo uma pequena aplicação para gerar&nbsp;chamadas&nbsp;por meio do Asterisk Manager (TCP 5038).<BR>
&nbsp;<BR>
Via Telnet, executei,<BR>
&nbsp;<BR>
Action: Login<BR>
Username: admin<BR>
Secret: amp111<BR>
&nbsp;<BR>
e a resposta foi OK.<BR>
Mas ao solicitar ação do tipo Originate retorna erro,<BR>
&nbsp;<BR>
Action: Originate<BR>
Context: ext-local<BR>
Exten: 03188888888<BR>
Priority: 1<BR>
Channel: SIP/1551<BR>
&nbsp;<BR>
e retorna,<BR>
&nbsp;<BR>
Response: Error<BR>Message: Originate failed<BR>
&nbsp;<BR>
Really destroying SIP dialog <A href="mailto:'07538cb1188b600846298c407c6f840c@127.0.0.1'">'07538cb1188b600846298c407c6f840c@127.0.0.1'</A> Method: INVITE<BR>
&nbsp;<BR>
Mas via X-Lite consigo realizar a chamada sem problema (via 1511).<BR>
Alguém sabe me informar onde estou falhando? Obrigado. Um abraço a todos.<BR>
A seguir colo o conteúdo dos arquivos de configuração do Asterisk.<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
sip.conf<BR>--<BR>[general]<BR>port=5060 ;Port to bind to (SIP is 5060)<BR>bindaddr=0.0.0.0 ;Address to bind to (all addresses on machines)<BR>srvlookup=yes<BR>register =&gt; USUARIO_VONO:SENHA_VONO@vono.net.br:5060/USUARIO_VONO<BR>
#include sip_nat.conf<BR>#include sip_custom.conf<BR>#include sip_additional.conf<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
sip_additional.conf<BR>--<BR>[1511]<BR>username=1511<BR>secret=123<BR>type=friend<BR>host=dynamic<BR>callerid=1511 &lt;1511&gt;<BR>context=ext-local<BR>
[1512]<BR>username=1512<BR>secret=123<BR>type=friend<BR>host=dynamic<BR>callerid=1512 &lt;1512&gt;<BR>context=ext-local<BR>
[1513]<BR>username=1513<BR>secret=123<BR>type=friend<BR>host=dynamic<BR>callerid=1513 &lt;1513&gt;<BR>context=ext-local<BR>
[USUARIO_VONO]<BR>type=peer<BR>username=USUARIO_VONO<BR>secret=SENHA_VONO<BR>fromuser=USUARIO_VONO<BR>fromdomain=vono.net.br<BR>context=gvt<BR>disallow=all<BR>allow=alaw<BR>allow=ilbc<BR>allow=ulaw<BR>host=vono.net.br<BR>insecure=very<BR>qualify=no<BR>port=5060<BR>aut=md5<BR>nat=yes<BR>canreinvite=no<BR>dtmfmode=rfc2833<BR>allow=gsm<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
extensions.conf<BR>--<BR>[ext-local]<BR>exten =&gt; 1511,1,Dial(SIP/1511,20)<BR>exten =&gt; 1511,2,Hangup<BR>
exten =&gt; 1512,1,Dial(SIP/1512,20)<BR>exten =&gt; 1512,2,Hangup<BR>
exten =&gt; 1513,1,Dial(SIP/1513,20)<BR>exten =&gt; 1513,2,Hangup<BR>
exten =&gt; _0.,1,Dial(<A href="mailto:SIP/${EXTEN}@USUARIO_VONO,60,A(test)S(1">SIP/${EXTEN}@USUARIO_VONO,60,A(test)S(1</A>))<BR>exten =&gt; _0.,2,Hangup<BR>
[gvt]<BR>exten =&gt; USUARIO_VONO,1,Dial(SIP/1511,20)<BR>exten =&gt; USUARIO_VONO,2,Hangup<BR><br /><hr />Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! <a href='http://www.livemaps.com.br/index.aspx?tr=true' target='_new'>Experimente já!</a></body>
</html>