Flávio<div><br></div><div>Provavelmente o Azzu está querendo encaminhar a chamada em g729 para o seu cliente e não consegue pelo mesmo não estar configurado no seu asterisk. Tira a linha dos allow e faz assim:</div><div><br>
</div><div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">context=from-trunk </span></div><div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">dtmfmode=rfc2833 </span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">fromdomain=<a href="http://azzu.com.br" target="_blank">azzu.com.br</a> </span></div><div>
<span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">fromuser=12026969 </span></div><div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">host=<a href="http://registrar.azzu.com.br" target="_blank">registrar.azzu.com.br</a> </span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">insecure=very </span></div><div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">port=5060 </span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">type=friend </span></div><div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">username=12026969 </span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; ">secret=35147300 </span></div><div><span class="Apple-style-span" style="font-family: monospace; font-style: italic; font-weight: bold; white-space: pre-wrap; "><span class="Apple-style-span" style="text-decoration: underline;">;allow=g729&amp;gsm&amp;alaw&amp;ulaw</span></span></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre-wrap;"><b><i><span class="Apple-style-span" style="text-decoration: underline;"><font class="Apple-style-span" color="#FF0000">disallow=all</font></span></i></b></span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre-wrap;"><b><i><span class="Apple-style-span" style="text-decoration: underline;"><font class="Apple-style-span" color="#FF0000">allow=gsm</font></span></i></b></span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre-wrap;"><b><i><span class="Apple-style-span" style="text-decoration: underline;"><font class="Apple-style-span" color="#FF0000">allow=ulaw</font></span></i></b></span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre-wrap;"><b><i><span class="Apple-style-span" style="text-decoration: underline;"><font class="Apple-style-span" color="#FF0000">allow=alaw</font></span></i></b></span></font></div>
<div><br></div><div>Tu podes ver se é o CODEC também, capturando os pacotes com o wireshark ....<br><br><div class="gmail_quote">2009/12/22 Flávio Bittencourt <span dir="ltr">&lt;<a href="mailto:flaviobittencourt@uol.com.br">flaviobittencourt@uol.com.br</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p><strong>Olá colegas,</strong></p>
<p><strong><br></strong></p>
<p><strong>O meu cenário é o seguinte:</strong></p>
<p><strong><br></strong></p>
<p><strong>Tenho servidor asterisk (trixbox) dentro de uma rede, com vários outros servidores de aplicativos e um firewall linux.</strong></p>
<p><strong>Este Firewall está com todas as portas abertas e ajustes necessários para que não interfira no trabalho do Asterisk.</strong></p>
<p><strong>Todos os ramais criados são com o protocolo IAX2, uma vez que todos serão remotos.</strong></p>
<p><strong>Criei uma conta Azzu que servirá de tronco para chamadas saintes e principalmente entrantes.</strong></p>
<p><strong>Segue a configuração:</strong></p>
<p><span style="font-family:monospace;white-space:pre-wrap"><em><strong>context=from-trunk dtmfmode=rfc2833 fromdomain=<a href="http://azzu.com.br" target="_blank">azzu.com.br</a> fromuser=12026969 host=<a href="http://registrar.azzu.com.br" target="_blank">registrar.azzu.com.br</a> insecure=very port=5060 type=friend username=12026969 secret=35147300 allow=g729&amp;gsm&amp;alaw&amp;ulaw</strong></em></span></p>

<p><strong>Embora a última linha faça referência ao codec g729, ainda não tenho instalado no servidor, mas providenciarei em breve.</strong></p>
<p><strong>Pelo FreePbx, criei um direcionamento para um dos ramais IAX2.</strong></p>
<p><strong><br></strong></p>
<p><strong>Pois bem, quando alguém liga para o número Azzu, o asterisk chega a atender através do tronco Azzu, mas ao direcionar para o ramal, apresenta congestionamento e dá sinal de ocupado.</strong></p>
<p><strong>No CLI, até apresenta o log da ligação entrando no asterisk através do tronco Azzu, e mostra que apresenta congestionamento.</strong></p>
<p><strong>O mais interessante é que não aparece o registro da ligação nos relatórios, nos CDR´s.</strong></p>
<p><strong><br></strong></p>
<p><strong>Segue trecho do log do CLI:</strong></p>
<p>
</p><p><em><strong> -- Goto (macro-dial,s,3)</strong></em></p>
<p><em><strong> -- Executing [s@macro-dial:3] AGI(&quot;SIP/12026969-08c42078&quot;, &quot;dialparties.agi&quot;) in new stack</strong></em></p>
<p><em><strong> -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi</strong></em></p>
<p><em><strong> dialparties.agi: Starting New Dialparties.agi</strong></em></p>
<p><em><strong> == Manager &#39;admin&#39; logged on from 127.0.0.1</strong></em></p>
<p><em><strong> dialparties.agi: Caller ID name is &#39;2124629371&#39; number is &#39;2124629371&#39;</strong></em></p>
<p><em><strong> &gt; dialparties.agi: USE_CONFIRMATION:  &#39;FALSE&#39;</strong></em></p>
<p><em><strong> &gt; dialparties.agi: RINGGROUP_INDEX:   &#39;&#39;</strong></em></p>
<p><em><strong> dialparties.agi: Methodology of ring is  &#39;none&#39;</strong></em></p>
<p><em><strong> -- dialparties.agi: Added extension 223 to extension map</strong></em></p>
<p><em><strong> &gt; dialparties.agi: Extension 223 has call screening off</strong></em></p>
<p><em><strong> -- dialparties.agi: Extension 223 cf is disabled</strong></em></p>
<p><em><strong> -- dialparties.agi: Extension 223 do not disturb is disabled</strong></em></p>
<p><em><strong> &gt; dialparties.agi: extnum 223 has:  cw: 1; hascfb: 0 [] hascfu: 0 []</strong></em></p>
<p><em><strong> &gt; dialparties.agi: ExtensionState: 0</strong></em></p>
<p><em><strong> -- dialparties.agi: dbset CALLTRACE/223 to 2124629371</strong></em></p>
<p><em><strong> -- dialparties.agi: Filtered ARG3: 223</strong></em></p>
<p><em><strong> == Manager &#39;admin&#39; logged off from 127.0.0.1</strong></em></p>
<p><em><strong> -- &lt;SIP/12026969-08c42078&gt;AGI Script dialparties.agi completed, returning 0</strong></em></p>
<p><em><strong> -- Executing [s@macro-dial:7] Dial(&quot;SIP/12026969-08c42078&quot;, &quot;IAX2/223,15,tr&quot;) in new stack</strong></em></p>
<p><em><strong> -- Hungup &#39;IAX2/223-3123&#39;</strong></em></p>
<p><em><strong> == Everyone is busy/congested at this time (1:0/0/1)</strong></em></p>
<p><em><strong> -- Executing [s@macro-dial:8] Set(&quot;SIP/12026969-08c42078&quot;, &quot;DIALSTATUS=CHANUNAVAIL&quot;) in new stack</strong></em></p>
<p></p>
<p><strong><br></strong></p>
<p><strong>O que os colegas acham disso?</strong></p>
<p> </p>
<p>Abraços</p>
<p> </p><font color="#888888">
<p>Flávio</p>
</font><br>_______________________________________________<br>
A Redfone é líder no fornecimento de bridges TDMoE &amp;lt;-&gt; E1<br>
- Valor similar ao de placas E1 PCI;<br>
- Não há problemas de compatibilidade com barramento PCI;<br>
- Possibilitam a construção de soluções de alta disponibilidade(dois<br>
servidores compartilham o mesmo E1)<br>
Conheça mais sobre este produto em <a href="http://www.red-fone.com" target="_blank">www.red-fone.com</a><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><br clear="all"><br>-- <br>Luis Machado Reis<br>
Analista de Sistemas<br><a href="http://www.singularideas.com.br">www.singularideas.com.br</a><br>
</div>