<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EstiloDeEmail18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT-BR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Ola, Descupa não percebi a falta do Texto,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Fiz um UP do 1.6 para 1.8 e ai começou a dor de cabeça com CDR,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Segue Configuração.:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Segue a minha configuração.:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>vim /etc/odbc.ini<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>[MySQL-asterisk]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Description = MySQL ODBC Driver Testing<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Driver = MySQL<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>port = 3306<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Socket = /var/run/mysqld/mysqld.sock<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Server = localhost<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>User = asterisk<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Password = asteriskcdr<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Database = asterisk<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Option = 3<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>vim /etc/odbcinst.ini<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>[MySQL]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Description = ODBC for MySQL<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Driver = /usr/lib/odbc/libmyodbc.so<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Setup = /usr/lib/odbc/libodbcmyS.so<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>FileUsage = 1<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Segue Debug asterisk<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Segue debug do asterisk<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> == Using SIP RTP CoS mark 5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> -- Executing [8001@from-ramais:1] Dial("SIP/8000-00000006", "SIP/8001,120,Tt,wW") in new stack<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> > [INSERT INTO cdr (uniqueid,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,disposition,amaflags,accountcode,userfield,sequence,linkedid) VALUES ('1316457058.6','','','','','','','','','',3,'','','','1316457058.6')]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> == Using SIP RTP CoS mark 5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> -- Called SIP/8001<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> > [INSERT INTO cdr (uniqueid,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,disposition,amaflags,accountcode,userfield,sequence,linkedid) VALUES ('1316457058.7','','','','','','','','','',3,'','','','1316457058.6')]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> -- SIP/8001-00000007 is ringing<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> -- SIP/8001-00000007 is ringing<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> == Spawn extension (from-ramais, 8001, 1) exited non-zero on 'SIP/8000-00000006'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> > [INSERT INTO cdr (uniqueid,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,disposition,amaflags,accountcode,userfield,sequence,linkedid) VALUES ('1316457058.7','','','','','','','','','',3,'','','','1316457058.6')]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>[Sep 19 15:31:11] ERROR[5573]: cdr_odbc.c:148 odbc_log: Unable to retrieve database handle. CDR failed.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> > [INSERT INTO cdr (uniqueid,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,disposition,amaflags,accountcode,userfield,sequence,linkedid) VALUES ('1316457058.7','','','','','','','','','',3,'','','','1316457058.6')]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> > [INSERT INTO cdr (uniqueid,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,disposition,amaflags,accountcode,userfield,sequence,linkedid) VALUES ('1316457058.6','','','','','','','','','',3,'','','','1316457058.6')]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> > [INSERT INTO cdr (uniqueid,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,disposition,amaflags,accountcode,userfield,sequence,linkedid) VALUES ('1316457058.6','','','','','','','','','',3,'','','','1316457058.6')]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> > [INSERT INTO cdr (uniqueid,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,disposition,amaflags,accountcode,userfield,sequence,linkedid) VALUES ('1316457058.6','','','','','','','','','',3,'','','','1316457058.6')]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Ele Grava so a data no Mysql, alguém já passou por isso?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>CDR + Mysql alguém já tem em produção.<o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>