<div dir="ltr"><div>Acho isso o seu erro:</div>
<div>&nbsp;</div>
<div>From the Manual:</div>
<div>&nbsp;</div>
<div>When defining your trunk configuration, you can take asterisk trunk configuration. You have to insert the same name you use to define the trunk in asterisk. If you are defining a SIP trunk and the carrier needs authentication, remember to add the following configuration in sip.conf</div>

<div>&nbsp;</div>
<div>By</div>
<div><br>&nbsp;</div>
<div class="gmail_quote">2008/8/24 Samuel Ferreira da Silva <span dir="ltr">&lt;<a href="mailto:samuel_tiosam@hotmail.com">samuel_tiosam@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>&nbsp;<br>Olá Pessoal,<br>&nbsp;<br>Tenho um a2billing aqui só que ele não liga já cadastrei o tronco no no sip.conf.<br>criei no a2billing o tronco&nbsp; como segue ai abaixo ja dei permissão pros arquivos relacionados com o a2billing<br>
estou discando : 0055773471XXXX.<br>&nbsp;<br>Opção: &gt; Create provider<br>&nbsp;<br>PROVIDER NAME :telebrasilvoip <br>&nbsp;<br>Opção: &gt; Add trunk<br>&nbsp;<br>VOIP-PROVIDER :telebrasilvoip<br>LABEL : telebrasilvoip1<br>ADD PREFIX: em branco<br>
REMOVE PREFIX: em branco<br>PROVIDER TECH: SIP<br>PROVIDER IP: <a href="http://sip.telebrasilvoip.com.br/" target="_blank">sip.telebrasilvoip.com.br</a><br>ADDITIONAL PARAMETER: em branco<br>FAILOVER TRUNK: NOT DEFINED<br>
&nbsp;<br>Opção &gt; Create Customers =&gt;&nbsp; CADASTRADO<br>Opção &gt; Add Rate =&gt; CADASTRADO<br>OPÇÃO &gt; Create SIP-FRIEND =&gt; CADASTRADO<br>Opção &gt;&nbsp; Create Call Plan&nbsp; =&gt;&nbsp; CADASTRADO<br>&nbsp;<br>NO SIP.CONF:<br>&nbsp;<br>register=<a href="http://40204500:minhasenha@sip.telebrasilvoip.com.br:5060/40204500" target="_blank">40204500:minhasenha@sip.telebrasilvoip.com.br:5060/40204500</a><br>
<br>[40204500]<br>username=40204500<br>type=peer<br>secret= minhasenha<br>port=5060<br>insecure=very<br>host=<a href="http://sip.telebrasilvoip.com.br/" target="_blank">sip.telebrasilvoip.com.br</a><br>fromuser=40204500<br>
fromdomain=<a href="http://sip.telebrasilvoip.com.br/" target="_blank">sip.telebrasilvoip.com.br</a><br>dtmfmode=rfc2833<br>disallow=all<br>context=a2billing<br>allow=gsm<br>allow=g729<br>allow=ilbc<br>allow=alaw<br>#include additional_a2billing_sip.conf<br>
<br>NO EXTENSIONS.CONF <br>[a2billing]<br>include =&gt; default<br>include =&gt; demo<br>exten =&gt; _X.,1,Answer<br>exten =&gt; _X.,n,Wait(1)<br>exten =&gt; _X.,n,AGI(a2billing.php|1)<br>;exten =&gt; _X.,n,DeadAGI(a2billing.php|1)<br>
exten =&gt; _X.,n,Hangup<br>&nbsp;<br>exten=&gt; _X.,Dial(<a href="mailto:SIP/$%7BEXTEN%7D@40204500,90,rT" target="_blank">SIP/${EXTEN}@40204500,90,rT</a>)<br>[a2billing-callback]<br>exten =&gt; _X.,1,AGI(a2billing.php|1|callback)<br>
exten =&gt; _X.,n,Hangup<br><br>[a2billing-cid-callback]<br>exten =&gt; _X.,1,AGI(a2billing.php|1|cid-callback|34) ;last parameter is the callback area code<br>exten =&gt; _X.,n,Hangup<br><br>[a2billing-all-callback]<br>exten =&gt; _X.,1,AGI(a2billing.php|1|all-callback|34) ;last parameter is the callback area code<br>
exten =&gt; _X.,n,Hangup<br>[a2billing-predictivedialer]<br>exten =&gt; _X.,1,AGI(a2billing.php|1|predictivedialer)<br>exten =&gt; _X.,n,Hangup<br>[a2billing-did]<br>exten =&gt; _X.,1,AGI(a2billing.php|1|did)<br>exten =&gt; _X.,2,Hangup<br>
<br>[a2billing-voucher]<br>exten =&gt; _X.,1,AGI(a2billing.php|1|voucher)<br>;exten =&gt; _X.,1,AGI(a2billing.php|1|voucher|44) ; will add 44 in front of the callerID for the CID authentication<br>exten =&gt; _X.,n,Hangup<br>
<br>SAIDA DO AGI:<br>&nbsp;<br>Verbosity is at least&nbsp;15<br>&nbsp;&nbsp;&nbsp; -- Remote UNIX connection<br>&nbsp;&nbsp;&nbsp; -- Executing Answer(&quot;SIP/0829399439-0819b770&quot;, &quot;&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing Wait(&quot;SIP/0829399439-0819b770&quot;, &quot;1&quot;) in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing AGI(&quot;SIP/0829399439-0819b770&quot;, &quot;a2billing.php|1&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php<br>AGI Tx &gt;&gt; agi_request: a2billing.php<br>
AGI Tx &gt;&gt; agi_channel: SIP/0829399439-0819b770<br>AGI Tx &gt;&gt; agi_language: en<br>AGI Tx &gt;&gt; agi_type: SIP<br>AGI Tx &gt;&gt; agi_uniqueid: 1219597073.3<br>AGI Tx &gt;&gt; agi_callerid: 132784311872962<br>AGI Tx &gt;&gt; agi_calleridname: unknown<br>
AGI Tx &gt;&gt; agi_callingpres: 0<br>AGI Tx &gt;&gt; agi_callingani2: 0<br>AGI Tx &gt;&gt; agi_callington: 0<br>AGI Tx &gt;&gt; agi_callingtns: 0<br>AGI Tx &gt;&gt; agi_dnid: 005507734713163<br>AGI Tx &gt;&gt; agi_rdnis: unknown<br>
AGI Tx &gt;&gt; agi_context: a2billing<br>AGI Tx &gt;&gt; agi_extension: 005507734713163<br>AGI Tx &gt;&gt; agi_priority: 3<br>AGI Tx &gt;&gt; agi_enhanced: 0.0<br>AGI Tx &gt;&gt; agi_accountcode: 0829399439<br>AGI Tx &gt;&gt; <br>
&nbsp;&nbsp;&nbsp; -- AGI Script a2billing.php completed, returning 0<br>&nbsp;&nbsp;&nbsp; -- Executing Hangup(&quot;SIP/0829399439-0819b770&quot;, &quot;&quot;) in new stack<br>&nbsp; == Spawn extension (a2billing, 005507734713163, 4) exited non-zero on &#39;SIP/0829399439-0819b770&#39;<br>
verde*CLI&gt; <br>&nbsp;<br>Se alguem tem uma sugestão de configuração me ajude.<br>&nbsp;<br>Atenciosamente:<br>Samuel Ferreira da Silva<br>MSN : <a href="mailto:samuel_tiosam@hotmail.com" target="_blank">samuel_tiosam@hotmail.com</a><br>
&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br><br>
<hr>
Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! <a href="http://www.msn.com.br/emoticonpack" target="_blank">É GRÁTIS!</a></div><br>_______________________________________________<br>
Compre uma camiseta da AsteriskBrasil.org!<br><a href="http://www.voipmania.com.br/" target="_blank">http://www.voipmania.com.br</a><br><br>Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na rede Freenode.net: #asterisk-br<br>
_______________________________________________<br>Lista de discussões AsteriskBrasil.org<br><a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a><br><a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br>
</blockquote></div><br></div>