<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 http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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:blue;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Testo fumetto Carattere";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.StileMessaggioDiPostaElettronica18
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.StileMessaggioDiPostaElettronica20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.TestofumettoCarattere
        {mso-style-name:"Testo fumetto Carattere";
        mso-style-priority:99;
        mso-style-link:"Testo fumetto";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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=IT link=blue vlink=blue>

<div class=Section1>

<div>

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

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

<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I&#8217;m
using CSV output too.  Maybe you didn&#8217;t &#8220;module reload cdr&#8221;
after adding endbeforehexten?<o:p></o:p></span></p>

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

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

<p class=MsoNormal><span lang=EN-US style='font-size:7.5pt;font-family:"Verdana","sans-serif";
color:black'><o:p>&nbsp;</o:p></span></p>

</div>

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

<div>

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

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Segoe UI","sans-serif"'>Da:</span></b><span
style='font-size:10.0pt;font-family:"Segoe UI","sans-serif"'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b>Per conto di </b>Danny
Nicholas<br>
<b>Inviato:</b> giovedì 29 ottobre 2009 14.25<br>
<b>A:</b> 'Asterisk Users Mailing List - Non-Commercial Discussion'<br>
<b>Oggetto:</b> Re: [asterisk-users] R: R: R: CDR(billsec)<o:p></o:p></span></p>

</div>

</div>

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

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>While I don&#8217;t question that this works, I&#8217;ll state that
for some reason it doesn&#8217;t work on my 1.4.26.2 on Centos 5.3<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Here&#8217;s my test snippet<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,1,answer<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,n,SetMusicOnHold(default)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,n,Background(pls-hold-while-try)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,n,WaitMusicOnHold(5)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,n,Background(vm-goodbye)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,n,Verbose(time ${CDR(billsec)})<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,n,Verbose(dur ${CDR(duration)})<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,n,Verbose(id ${CDR(uniqueid)})<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>exten =&gt; 333,n,Hangup<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>here&#8217;s cdr.conf<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>[general]<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>endbeforehexten = yes<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>[csv]<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>usegmtime = no&nbsp;&nbsp;&nbsp; ; log date/time in GMT.&nbsp;
Default is &quot;no&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>loguniqueid = yes&nbsp; ; log uniqueid.&nbsp; Default is
&quot;no&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>loguserfield = yes ; log user field.&nbsp; Default is
&quot;no&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>here&#8217;s CLI output<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>-- Executing [333@DLPN_DialPlan1:1] Answer(&quot;SIP/170-b3704ae0&quot;,
&quot;&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [333@DLPN_DialPlan1:2]
SetMusicOnHold(&quot;SIP/170-b3704ae0&quot;, &quot;default&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [333@DLPN_DialPlan1:3]
BackGround(&quot;SIP/170-b3704ae0&quot;, &quot;pls-hold-while-try&quot;) in new
stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- &lt;SIP/170-b3704ae0&gt; Playing
'pls-hold-while-try' (language 'en')<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [333@DLPN_DialPlan1:4]
WaitMusicOnHold(&quot;SIP/170-b3704ae0&quot;, &quot;5&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Started music on hold, class 'default', on
SIP/170-b3704ae0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Stopped music on hold on SIP/170-b3704ae0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [333@DLPN_DialPlan1:5]
BackGround(&quot;SIP/170-b3704ae0&quot;, &quot;vm-goodbye&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- &lt;SIP/170-b3704ae0&gt; Playing 'vm-goodbye'
(language 'en')<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [333@DLPN_DialPlan1:6]
Verbose(&quot;SIP/170-b3704ae0&quot;, &quot;time 0&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>time 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [333@DLPN_DialPlan1:7]
Verbose(&quot;SIP/170-b3704ae0&quot;, &quot;dur 0&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>dur 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [333@DLPN_DialPlan1:8]
Verbose(&quot;SIP/170-b3704ae0&quot;, &quot;id 1256822108.6&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>id 1256822108.6<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [333@DLPN_DialPlan1:9]
Hangup(&quot;SIP/170-b3704ae0&quot;, &quot;&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp; == Spawn extension (DLPN_DialPlan1, 333, 9) exited non-zero
on 'SIP/170-b3704ae0'<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [h@DLPN_DialPlan1:1]
Set(&quot;SIP/170-b3704ae0&quot;, &quot;CDR(userfield)= Hangupcause:16&quot;)
in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [h@DLPN_DialPlan1:2]
DeadAGI(&quot;SIP/170-b3704ae0&quot;, &quot;userfield.agi|1256822108.6|
Hangupcause:16&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Launched AGI Script
/var/lib/asterisk/agi-bin/userfield.agi<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- AGI Script userfield.agi completed, returning
0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [h@DLPN_DialPlan1:3]
NoOp(&quot;SIP/170-b3704ae0&quot;, &quot;id 1256822108.6 time 8&quot;) in new
stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [h@DLPN_DialPlan1:4]
NoOp(&quot;SIP/170-b3704ae0&quot;, &quot;caller hung up&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp;&nbsp;&nbsp; -- Executing [h@DLPN_DialPlan1:5]
Hangup(&quot;SIP/170-b3704ae0&quot;, &quot;&quot;) in new stack<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>&nbsp; == Spawn extension (DLPN_DialPlan1, h, 5) exited non-zero on
'SIP/170-b3704ae0'<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>FWIW, I&#8217;m only using the csv CDR; perhaps these values are
better preserved/presented if you use the SQL CDR&#8217;s?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Anahi
Ludueña<br>
<b>Sent:</b> Thursday, October 29, 2009 7:30 AM<br>
<b>To:</b> asterisk-users@lists.digium.com<br>
<b>Subject:</b> Re: [asterisk-users] R: R: R: CDR(billsec)</span><span
lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Thanks Matt!<br>
It works now! <br>
Bye...<o:p></o:p></span></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><strong><span
lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif";
font-weight:normal'>

<hr size=2 width="100%" align=center>

</span></strong></div>

<p class=MsoNormal align=center style='text-align:center'><strong><span
lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Anahi
Ludueña</span></strong><o:p></o:p></p>

<p class=MsoNormal align=center style='text-align:center'><span lang=EN-US
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><br>
<br>
<br>
<br>
&gt; Date: Fri, 30 Oct 2009 01:20:02 +1300<br>
&gt; From: lists@venturevoip.com<br>
&gt; To: asterisk-users@lists.digium.com<br>
&gt; Subject: Re: [asterisk-users] R: R: R: CDR(billsec)<br>
&gt; <br>
&gt; On 30/10/09 1:10 AM, Alexandru Oniciuc wrote:<br>
&gt; &gt;<br>
&gt; &gt; Thank you! My bad,the CDR function was working on 1.4, I can confirm
that endbeforehexten=yes does the trick, I've just tried it :]<br>
&gt; &gt;<br>
&gt; &gt; WOW: &quot;On 29/10/09 5:56 AM, Alexandru Oniciuc wrote:&quot; 12h
difference!<br>
&gt; <br>
&gt; :D Yeah based in New Zealand - we're just about ahead of everybody - in <br>
&gt; fact it's 1:20 in the morning so I probably should go to sleep :)<br>
&gt; <br>
&gt; -- <br>
&gt; Cheers,<br>
&gt; <br>
&gt; Matt Riddell<br>
&gt; Director<br>
&gt; _______________________________________________<br>
&gt; <br>
&gt; http://www.venturevoip.com/news.php (Daily Asterisk News)<br>
&gt; http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)<br>
&gt; http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>
&gt; <br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt; http://lists.digium.com/mailman/listinfo/asterisk-users<o:p></o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>¿Para
qué descargarte juegos, si tienes los más divertidos online? <a
href="http://juegosonline.es.msn.com/" target="_new">Entra ya en Juegos y
prepárate para muchas horas de diversión</a><o:p></o:p></span></p>

</div>

</body>

</html>