<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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</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=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ok, nos mais obrigado pelas informações.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Att;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Alan Pablo.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span lang=PT-BR style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>De:</span></b><span lang=PT-BR style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>
asteriskbrasil-bounces@listas.asteriskbrasil.org
[mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org] <b>Em nome de </b>Rodrigo
Lang<br>
<b>Enviada em:</b> Tuesday, October 27, 2009 1:40 PM<br>
<b>Para:</b> asteriskbrasil@listas.asteriskbrasil.org<br>
<b>Assunto:</b> Re: [AsteriskBrasil] RES: RES: Adicionar campo CDR.<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Alan, por essas e outras que eu
já utilizo o 1.6! :)<br>
<br>
<br>
Ats,<br>
Rodrigo.<br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal>2009/10/27 Alan Pablo &lt;<a
href="mailto:pablo@contacte.com.br">pablo@contacte.com.br</a>&gt;<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Bem Rodrigo a parte do
arquivo funcionou bem, tá gerando o arquivo
/var/log/asterisk/cdr-custom/Master.csv , agora a parte do banco de dados não
funcionou não.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Ele manda somente as
informações do arquivo Master.csv (/var/log/asterisk/cdr-csv/) original , no
link abaixo diz que isso não é possível nativamente pelo asterisk 1.4.X somente
com uma path é isso mesmo?</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'><a
href="http://www.mail-archive.com/asteriskbrasil@listas.asteriskbrasil.org/msg32559.html"
target="_blank">http://www.mail-archive.com/asteriskbrasil@listas.asteriskbrasil.org/msg32559.html</a>
</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>/etc/asterisk/cdr_custom.conf</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>[mappings]</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Master.csv =&gt;
&quot;${CDR(clid)}&quot;,&quot;${CDR(src)}&quot;,&quot;${CDR(dst)}&quot;,&quot;${CDR(dcontext)}&quot;,&quot;${CDR(channel)}&quot;,&quot;${CDR(dstchannel)}&quot;,&quot;${CDR(lastapp)}&quot;,&quot;${CDR(lastdata)}&quot;,&quot;${CDR(start)}&quot;,&quot;${CDR(answer)}&quot;,&quot;${CDR(end)}&quot;,&quot;${CDR(duration)}&quot;,&quot;${CDR(billsec)}&quot;,&quot;${CDR(disposition)}&quot;,&quot;${CDR(amaflags)}&quot;,&quot;${CDR(accountcode)}&quot;,&quot;${CDR(uniqueid)}&quot;,&quot;${CDR(userfield)}&quot;,&quot;${CDR(empresa)}&quot;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>/etc/asterisk/extensions.conf</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>[gw-celular]</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>exten =&gt;
_X.,1,Set(CDR(empresa)=TESTE)</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>exten =&gt; _X.,n,Dial(Dgv/g1/${EXTEN}|30|Ttr)</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>exten =&gt; _X.,n,Hangup()</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Att;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Alan Pablo.</span><o:p></o:p></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=PT-BR style='font-size:10.0pt'>De:</span></b><span lang=PT-BR
style='font-size:10.0pt'> <a
href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>
[mailto:<a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org"
target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>] <b>Em
nome de </b>Alan Pablo<br>
<b>Enviada em:</b> Tuesday, October 27, 2009 8:51 AM<o:p></o:p></span></p>

<div>

<p class=MsoNormal><span lang=PT-BR style='font-size:10.0pt'><br>
<b>Para:</b> <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org"
target="_blank">asteriskbrasil@listas.asteriskbrasil.org</a><o:p></o:p></span></p>

</div>

<p class=MsoNormal><b><span lang=PT-BR style='font-size:10.0pt'>Assunto:</span></b><span
lang=PT-BR style='font-size:10.0pt'> [AsteriskBrasil] RES: Adicionar campo CDR.</span><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Opa Rodrigo, é isso mesmo!!</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Vou realizar os teste.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Obrigado!</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Att;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>Alan Pablo.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=PT-BR style='font-size:10.0pt'>De:</span></b><span lang=PT-BR
style='font-size:10.0pt'> <a
href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>
[mailto:<a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org"
target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>] <b>Em nome
de </b>Rodrigo Lang<br>
<b>Enviada em:</b> Tuesday, October 27, 2009 8:15 AM<br>
<b>Para:</b> <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org"
target="_blank">asteriskbrasil@listas.asteriskbrasil.org</a><br>
<b>Assunto:</b> Re: [AsteriskBrasil] Adicionar campo CDR.</span><o:p></o:p></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>Alan,
você pode fazer da seguinte maneira. Antes de uma ligação você coloca a linha:<br>
<br>
Exemplo:<br>
<span lang=PT-BR style='background:#FFFF33'>Set(${CDR(fluxo)</span><span
lang=PT-BR>=saida})</span> ;para ligações de saída<br>
ou<br>
<span lang=PT-BR style='background:#FFFF33'>Set(${CDR(fluxo)</span><span
lang=PT-BR>=entrada})</span> ;para ligações de entrada<br>
<br>
<span lang=PT-BR style='font-size:11.0pt;color:black'>Master.txt =&gt;
&quot;&quot;,&quot;${CDR(src)}&quot;,&quot;${CDR(dst)}&quot;,&quot;${CDR(userfield)}ramal&quot;,&quot;${CDR(dst)}&quot;,&quot;${CDR(channel)}&quot;,&quot;${CDR(channel)}&quot;,&quot;${CDR(disposition)}&quot;,&quot;${CDR(channel)}&quot;,&quot;${CDR(start)}&quot;,&quot;${CDR(start)}&quot;,&quot;${CDR(start)}&quot;,&quot;${CDR(duration)}&quot;,&quot;${CDR(duration)}&quot;,&quot;${CDR(userfield)}ANSWERED&quot;,&quot;${CDR(userfield)}DOCUMENTATION&quot;</span>,<span
style='background:#FFFF33'>&quot;${CDR(fluxo)}&quot;</span><br>
<br>
Se você utilizar um banco, é só incluir na tabela os campos que você adicionar.
Espero que ajude!<br>
<br>
Ats,<br>
Rodrigo.<o:p></o:p></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>2009/10/26
Alan Pablo &lt;<a href="mailto:pablo@contacte.com.br" target="_blank">pablo@contacte.com.br</a>&gt;<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>Bom dia, Gurus da lista!</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Estou com a necessidade de adicionar mais uns 2 campos na tabela CDR com o
intuito de melhoras os meus relacionamentos e desempenho da base de dados,
alguém sabe me dizer se tem como eu incluir esses 2 campos &nbsp;e manipular
seus valores , setando variáveis pelo plano de discagem igual fazemos com as
demais : Set(${CDR(novocampo)}) por exemplo.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>OBS: já utilizo hoje os campos accountcode e userfield.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>Qualquer dica/sugestão é bem vinda.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>Obrigado!</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>Att;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=PT-BR>Alan Pablo.</span><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br>
<br>
_______________________________________________<br>
<a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
Telefone IP sem fio Gigaset A580IP por 6 x R$59,90.<br>
Promoção por tempo limitado!<br>
Acesse agora <a href="http://promo.voipmania.com.br" target="_blank">http://promo.voipmania.com.br</a><br>
<br>
_______________________________________________<br>
Lista de discussões AsteriskBrasil.org<br>
<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org" target="_blank">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><o:p></o:p></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br>
<br clear=all>
<br>
-- <br>
Rodrigo F. Lang<br>
Amd. de Redes em Telecom<o:p></o:p></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal><br>
<br>
_______________________________________________<br>
<a href="http://www.voipmania.com.br" target="_blank">http://www.voipmania.com.br</a><br>
Telefone IP sem fio Gigaset A580IP por 6 x R$59,90.<br>
Promoção por tempo limitado!<br>
Acesse agora <a href="http://promo.voipmania.com.br" target="_blank">http://promo.voipmania.com.br</a><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><o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
Rodrigo F. Lang<br>
Amd. de Redes em Telecom<o:p></o:p></p>

</div>

</body>

</html>