<div dir="ltr">Felippe,<div><br></div><div>Já ví esse problema acontecer... o Asterisk não consegue atualizar automaticamente contas que forem cadastradas utilizando DNS (<a href="http://vono.net.br">vono.net.br</a>). Somente como você mencionou, utilizando &quot;sip reload&quot;.</div>
<div><br></div><div>Tenta cadastrar utilizando IP, ou criar um script que faça o &quot;sip reload&quot; quando seu link cair.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">Em 17 de junho de 2013 08:49, Felippe <span dir="ltr">&lt;<a href="mailto:alcaponefelippe@bol.com.br" target="_blank">alcaponefelippe@bol.com.br</a>&gt;</span> escreveu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div> </div>
<div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">Pessoal,</span></span></div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">bom dia.</span></span></div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">Por favor, quem puder dar dicas agradeço!</span></span></div>

<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div><span style="color:#222222;font-family:&#39;courier new&#39;,courier;font-size:small"><span style="font-family:&#39;courier new&#39;,monospace">Tem mais ou menos uns 8 meses que estou &quot;pelejando&quot; com uma conta vono que tenho no servidor CentOS 6.3 kernel</span></span><span style="color:#222222;font-family:&#39;courier new&#39;,monospace;font-size:small"> 2.6.32-279.5.1.el6.i686</span><span style="color:#222222;font-family:&#39;courier new&#39;,monospace;font-size:small"> (fire desativado) porem atras de outro fire que esta liberando todas as saídas tcp/ip e entrada 5060, 1571, 10000-20000, 2345, </span><span style="font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif;font-size:11px">8000 - 65000, 22</span></div>

<div style="color:#222222;font-family:arial;font-size:small"> </div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">  <strong>1 - PROBLEMA</strong></span></span></div>

<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"><strong> </strong></span></span></div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">  Qndo o link de internet cai, e retorna, a conta não registra. Tenho que realizar um sip reload ou mesmo restartar o asterisk. No sip.conf não tenho nada mais referente a timeout ou re-register pois havia ativado alguns e não surtiu efeito. Abaixo:</span></span></div>

<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div style="color:#222222;font-family:arial;font-size:small">
<div><span style="font-family:&#39;courier new&#39;,courier">;registerattempts=1200</span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">;registertimeout= 360</span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">;externrefresh = 360</span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">;defaultexpirey=1200</span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">;maxexpirey=1200</span></span></div>
<div> </div>
<div> </div>
</div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><strong style="font-family:&#39;courier new&#39;,monospace">  2 - PROBLEMA</strong><span style="font-family:&#39;courier new&#39;,monospace"><br>
</span></span></div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><strong style="font-family:&#39;courier new&#39;,monospace"> </strong></span></div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><strong style="font-family:&#39;courier new&#39;,monospace">  </strong>Há um problema com o dns que não consigo descobrir. Instalei o bind/named com yum do CentOS. Não realizei modificações em suas configurações. Apenas coloquei no resolv.conf o ip de loopback:</span></div>

<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"> </span></div>
<div style="color:#222222;font-family:arial;font-size:small">
<div>
<div><span style="font-family:&#39;courier new&#39;,courier">[root@ipbx ~]# vim /etc/resolv.conf</span></div>
<div><span style="font-family:&#39;courier new&#39;,courier">nameserver 127.0.0.1</span></div>
<div><span style="font-family:&#39;courier new&#39;,courier">nameserver 192.168.218.120</span></div>
</div>
<div><span style="font-family:&#39;courier new&#39;,courier">nameserver 8.8.8.8</span></div>
<div> </div>
<div><span style="font-family:&#39;courier new&#39;,courier">    O grande problema eh que as vezes a conta vono desconecta, vou verificar o motivo e de cara ja vejo o ping elevadíssimo e até mesmo perdendo pacotes. Mas não eh nada na internet e sim com o named. Quando dou um stop nele tudo volta ao normal. O problema eh que não posso deixa-lo parado pois se a internet parar o asterisk fica down (aquele velho problema do dns). </span></div>

<div> </div>
</div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><strong style="font-family:&#39;courier new&#39;,monospace">PING COM O NAMED START</strong></span></div>

<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><strong style="font-family:&#39;courier new&#39;,monospace"> </strong></span></div>
<div style="color:#222222;font-family:arial;font-size:small">
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">[root@ipbx ~]# /etc/init.d/named start</span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">Iniciando o named:     [  OK  ]</span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">[root@ipbx ~]# ping <a href="http://vono.net.br" target="_blank">vono.net.br</a></span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">PING <a href="http://vono.net.br" target="_blank">vono.net.br</a> (201.86.87.35) 56(84) bytes of data.</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=1 ttl=55 time=1809.6 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=2 ttl=55 time=1551.3 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=3 ttl=55 time=1110.0 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=4 ttl=55 time=1138.8 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=5 ttl=55 time=1319.7 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=6 ttl=55 time=18379.8 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=7 ttl=55 time=1149.9 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=8 ttl=55 time=1210.1 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=9 ttl=55 time=1118.8 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=10 ttl=55 time=1119.0 ms</span></span></div>

</div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div style="color:#222222;font-family:arial;font-size:small">
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><strong style="font-family:&#39;courier new&#39;,monospace">PING COM O NAMED STOP</strong><span style="font-family:&#39;courier new&#39;,monospace"><br></span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">[root@ipbx ~]# /etc/init.d/named stop</span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">Parando o named:    [  OK  ]</span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">[root@ipbx ~]# ping <a href="http://vono.net.br" target="_blank">vono.net.br</a></span></span></div>
<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">PING <a href="http://vono.net.br" target="_blank">vono.net.br</a> (201.86.87.35) 56(84) bytes of data.   (Aqui ele demora uns 10 segundos para começar a pingar)</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=1 ttl=55 time=19.8 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=2 ttl=55 time=18.7 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=3 ttl=55 time=18.8 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=4 ttl=55 time=19.0 ms</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">64 bytes from <a href="http://201.86.87.35.sbc.static.gvt.net.br" target="_blank">201.86.87.35.sbc.static.gvt.net.br</a> (201.86.87.35): icmp_seq=5 ttl=55 time=17.8 ms</span></span></div>

</div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">  Agora restartei o servidor, desativei o bind/named e realizei pings, abri as confs mas nao alterei nada e apos 10 minutos voltou o ping normal mesmo com o named ativado.</span></span></div>

<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace"> </span></span></div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">   </span></span><strong style="font-family:&#39;courier new&#39;,monospace">4 - PROBLEMA</strong></div>

<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"><span style="font-family:&#39;courier new&#39;,monospace">   Nessas horas o named esta ativo, o ping para o vono ok porem a conta não registra de forma alguma:</span></span></div>

<div><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="font-family:&#39;courier new&#39;,monospace"><span style="color:#222222;font-size:small"> </span></span></div>
<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="color:#222222;font-size:small">ipbx*CLI&gt; sip show registry</span></div>
<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="color:#222222;font-size:small">Host                                    dnsmgr Username       Refresh State                Reg.Time</span></div>
<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="color:#222222;font-size:small"><a href="http://vono.net.br:5060" target="_blank">vono.net.br:5060</a>                        N      conta-vono          120 Request Sent</span></div>
<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="font-family:&#39;courier new&#39;,monospace"><span style="color:#222222;font-size:small"> </span></span></div>
<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="color:#222222;font-size:small">   Se eu para o named e resart o asterisk a conta registra. Se restartar o asterisk com o named ativo não registra.</span></span></span></div>

<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="color:#222222;font-size:small"> </span></span></span></span></div>

<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="color:#222222;font-size:small">   Vale lembrar que tem dias que tudo funciona normal, named ativo, vono registrada, etc.. </span></span></span></span></span></div>

<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"><span style="color:#222222;font-size:small">   Selinux esta desabilitado.</span></span></span></span></span></span></div>

<span style="font-family:&#39;courier new&#39;,monospace"><span style="font-family:&#39;courier new&#39;,monospace"></span></span>
<div style="color:#222222;font-family:&#39;courier new&#39;,courier;font-size:small"> </div>
</div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier">   Alguem possui alguma dica? Vale tudo, menos mandar eu instalar outra distro hehe.  Servidor em PRD.</span></div>

<div style="color:#222222;font-family:arial;font-size:small"> </div>
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier">   Obrigado.</span></div><span class="HOEnZb"><font color="#888888">
<div style="color:#222222;font-family:arial;font-size:small"><span style="font-family:&#39;courier new&#39;,courier"> </span><span style="font-family:&#39;courier new&#39;,courier">             Felippe.</span></div>
</font></span></div>
<br>_______________________________________________<br>
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>
Intercomunicadores para acesso remoto via rede IP. Conheça em <a href="http://www.Khomp.com" target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>
ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>
Channel Bank – Appliance Asterisk - Acesse <a href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a>.<br>
_______________________________________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br></blockquote></div>
<br><br clear="all"><div><br></div>-- <br><div dir="ltr">Willian de Morais<div>Cel: (48) 8811-9660</div><div>Gtalk: <a href="mailto:williandmorais@gmail.com" target="_blank">williandmorais@gmail.com</a></div></div>
</div>