<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="IncrediMail 1.0">
<STYLE>v\:* {
        BEHAVIOR: url (#default#vml)
}
</STYLE>

<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>B433CDFE-B71C-42C2-A5C1-D34C076A9851</X-FID>
<X-FVER></X-FVER>
<X-FIT></X-FIT>
<X-FILE></X-FILE>
<X-FCOL></X-FCOL>
<X-FCAT></X-FCAT>
<X-FDIS></X-FDIS>
<X-Extensions></X-Extensions>
<X-BG></X-BG>
<X-BGT>repeat</X-BGT>
<X-BGC>#ffffff</X-BGC>
<X-BGPX></X-BGPX>
<X-BGPY></X-BGPY>
<X-ASN></X-ASN>
<X-ASNF></X-ASNF>
<X-ASH></X-ASH>
<X-ASHF></X-ASHF>
<X-AN></X-AN>
<X-ANF></X-ANF>
<X-AP></X-AP>
<X-APF></X-APF>
<X-AD></X-AD>
<X-ADF></X-ADF>
<X-AUTO>X-ASN,X-ASH,X-AN,X-AP,X-AD</X-AUTO>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY bottomMargin=5 leftMargin=5 rightMargin=5 scroll=yes topMargin=5 bgColor=#ffffff marginheight="0" marginwidth="0" webfixed="1">
<TABLE id=INCREDIMAINTABLE border=0 cellSpacing=0 cellPadding=0 width="100%" background="" bgColor=#ffffff height="100%">
<TBODY>
<TR>
<TD style="POSITION: relative; PADDING-BOTTOM: 20px; PADDING-LEFT: 20px; PADDING-RIGHT: 20px; FONT-FAMILY: Verdana; DIRECTION: ltr; COLOR: #1c3966; FONT-SIZE: 12pt; PADDING-TOP: 20px" id=INCREDITEXTREGION vAlign=top>
<DIV style="PADDING-LEFT: 2px" id=INCREDI_TEXT_AREA>
<DIV>
<DIV>Olá amigão.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Diga pra nós qual a versão do seu asterisk,&nbsp;os&nbsp;registros que estão na tabela&nbsp;extensions, como vc o chama no extensions.conf.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Fica mais facil da gente ajudar <IMG id=INCREDIINSERTIMAGE border=0 align=absMiddle src="cid:74413036-E549-4E98-8B94-3F46ADC68A6C" INCREDIIMAGEATTRIBS INCREDIIMAGEEXTENSIONS IMEMOTICON="1" IMEMOTICONGUID="D954FC04-61DA-49c9-856D-44B35EA9ADDA" INCREDIEMOTICONSHORTCUT=";)"></DIV>
<DIV>&nbsp;</DIV>
<DIV>abraços&nbsp;</DIV></DIV></DIV>
<DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV id=INCREDISIGNATUREID ondrag="return false;">
<DIV style="FONT-FAMILY: Times New Roman"><FONT size=2>____________________________________</FONT></DIV>
<DIV style="FONT-FAMILY: Times New Roman"><FONT size=2>Fernando da Silva Santos</FONT></DIV>
<DIV style="FONT-FAMILY: Times New Roman"><FONT size=2>Desenvolvedor - 7Billing</FONT></DIV>
<DIV style="FONT-FAMILY: Times New Roman"><FONT size=2>http://<A href="http://www.7billing.com.br/">www.7billing.com.br</A></FONT></DIV></DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr id=IncrediOriginalMessage><I>-------Original Message-------</I></DIV>
<DIV>&nbsp;</DIV>
<DIV id=receivestrings>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>From:</B></I> <A href="mailto:fernando@osmanager.com.br">Fernando Augusto</A></DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>Date:</B></I> 05/10/2010 05:26:26</DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>To:</B></I> <A href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</A></DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>Subject:</B></I> [AsteriskBrasil] Asterisk Realtime</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>Senhores,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Estou a madrugada toda tentando fazer o Asterisk Realtime funcionar, de modo</DIV>
<DIV>que possa fazer a carga do extensions de uma tabela.</DIV>
<DIV>Emperrei na seguinte questão:</DIV>
<DIV>&nbsp;</DIV>
<DIV>[Oct&nbsp;&nbsp;5 05:12:05] DEBUG[31653]: res_config_mysql.c:1602 mysql_reconnect:</DIV>
<DIV>MySQL RealTime: Connection okay.</DIV>
<DIV>[Oct&nbsp;&nbsp;5 05:12:05] DEBUG[31653]: res_config_mysql.c:371 realtime_mysql: MySQL</DIV>
<DIV>RealTime: Retrieve SQL: SELECT * FROM extensions WHERE exten = 's' AND</DIV>
<DIV>context = 'default' AND priority = '1'</DIV>
<DIV>[Oct&nbsp;&nbsp;5 05:12:05] DEBUG[31653]: res_config_mysql.c:1602 mysql_reconnect:</DIV>
<DIV>MySQL RealTime: Connection okay.</DIV>
<DIV>[Oct&nbsp;&nbsp;5 05:12:05] DEBUG[31653]: res_config_mysql.c:371 realtime_mysql: MySQL</DIV>
<DIV>RealTime: Retrieve SQL: SELECT * FROM extensions WHERE exten = 's' AND</DIV>
<DIV>context = 'default' AND priority = '1'</DIV>
<DIV>[Oct&nbsp;&nbsp;5 05:12:05] DEBUG[31653]: res_config_mysql.c:1602 mysql_reconnect:</DIV>
<DIV>MySQL RealTime: Connection okay.</DIV>
<DIV>[Oct&nbsp;&nbsp;5 05:12:05] DEBUG[31653]: res_config_mysql.c:371 realtime_mysql: MySQL</DIV>
<DIV>RealTime: Retrieve SQL: SELECT * FROM extensions WHERE exten = 's' AND</DIV>
<DIV>context = 'default' AND priority = '1'</DIV>
<DIV>[Oct&nbsp;&nbsp;5 05:12:05] WARNING[31653]: pbx_realtime.c:257 realtime_exec: No</DIV>
<DIV>application specified for realtime extension 's' in context 'default'</DIV>
<DIV>[Oct&nbsp;&nbsp;5 05:12:05] DEBUG[31653]: pbx.c:4322 __ast_pbx_run: Spawn extension</DIV>
<DIV>(default,s,1) exited non-zero on 'DAHDI/1-1'</DIV>
<DIV>&nbsp;</DIV>
<DIV>O Asterisk conecta com sucesso no banco e roda a consulta, esta retorna</DIV>
<DIV>dados (tem um registro na tabela que atende aos filtros da consulta) mas ele</DIV>
<DIV>tenta fazer a consulta novamente, como se não encontrasse resposta. Depois</DIV>
<DIV>de 3 tentativas, o realtime desiste, e passa a tentar o hangup da linha</DIV>
<DIV>(exten='h', que também não encontra). Dessa forma, o Asterisk não atende a</DIV>
<DIV>linha (já que não roda o comando Answer) e fica buscando do banco toda vez</DIV>
<DIV>que recebe um ring da linha. Já verifiquei banco, quanto a espaço, formato</DIV>
<DIV>de campo, já mudei tipo de campo e nada adiantou. A tabela atualmente está</DIV>
<DIV>assim:</DIV>
<DIV>mysql&gt; show fields from extensions;</DIV>
<DIV>+-------------+-------------+------+-----+---------+-------+</DIV>
<DIV>| Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| Null | Key | Default | Extra |</DIV>
<DIV>+-------------+-------------+------+-----+---------+-------+</DIV>
<DIV>| context&nbsp;&nbsp;&nbsp;&nbsp; | varchar(20) | NO&nbsp;&nbsp; | PRI | NULL&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</DIV>
<DIV>| exten&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | varchar(20) | NO&nbsp;&nbsp; | PRI | NULL&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</DIV>
<DIV>| priority&nbsp;&nbsp;&nbsp;&nbsp;| varchar(10) | NO&nbsp;&nbsp; | PRI | 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</DIV>
<DIV>| application | char(20)&nbsp;&nbsp;&nbsp;&nbsp;| NO&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; | NULL&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</DIV>
<DIV>| args&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| char(50)&nbsp;&nbsp;&nbsp;&nbsp;| YES&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; | NULL&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</DIV>
<DIV>| descr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | text&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| YES&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; | NULL&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</DIV>
<DIV>| flags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | int(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| NO&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; | 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</DIV>
<DIV>+-------------+-------------+------+-----+---------+-------+</DIV>
<DIV>&nbsp;</DIV>
<DIV>Alguém usa essa solução e teve algo parecido?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Att,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Fernando Augusto</DIV>
<DIV>&nbsp;</DIV>
<DIV>_______________________________________________</DIV>
<DIV>KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk.</DIV>
<DIV>- Hardware com alta disponibilidade de recursos e qualidade KHOMP</DIV>
<DIV>- Suporte técnico local qualificado e gratuito</DIV>
<DIV>Conheça a linha completa de produtos KHOMP em <A href="http://www.khomp.com.br">www.khomp.com.br</A></DIV>
<DIV>_______________________________________________</DIV>
<DIV>Temos tudo para seu projeto VoIP com Asterisk!</DIV>
<DIV>Descontos especiais para assinantes da AsteriskBrasil.org.</DIV>
<DIV>Registre-se e receba um cupom exclusivo de desconto!</DIV>
<DIV>Acesse agora <A href="http://www.voipmania.com.br">www.voipmania.com.br</A></DIV>
<DIV>______________________________________________</DIV>
<DIV>Lista de discussões AsteriskBrasil.org</DIV>
<DIV><A href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</A></DIV>
<DIV><A href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</A></DIV>
<DIV>______________________________________________</DIV>
<DIV>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></DIV></DIV></TD>
<TD vAlign=bottom width=1 align=right><IMG src="cid:053C8355-257C-4F9A-A4E5-5A7014FEFAEF"></TD></TR></TBODY></TABLE></BODY></HTML>