<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> </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’m
using CSV output too. Maybe you didn’t “module reload cdr”
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> </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> </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> </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> </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’t question that this works, I’ll state that
for some reason it doesn’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’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 => 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 => 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 => 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 => 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 => 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 => 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 => 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 => 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 => 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’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> </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 ; log date/time in GMT.
Default is "no"<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 ; log uniqueid. Default is
"no"<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. Default is
"no"<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’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("SIP/170-b3704ae0",
"") 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'> -- Executing [333@DLPN_DialPlan1:2]
SetMusicOnHold("SIP/170-b3704ae0", "default") 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'> -- Executing [333@DLPN_DialPlan1:3]
BackGround("SIP/170-b3704ae0", "pls-hold-while-try") 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'> -- <SIP/170-b3704ae0> 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'> -- Executing [333@DLPN_DialPlan1:4]
WaitMusicOnHold("SIP/170-b3704ae0", "5") 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'> -- 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'> -- 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'> -- Executing [333@DLPN_DialPlan1:5]
BackGround("SIP/170-b3704ae0", "vm-goodbye") 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'> -- <SIP/170-b3704ae0> 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'> -- Executing [333@DLPN_DialPlan1:6]
Verbose("SIP/170-b3704ae0", "time 0") 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'> -- Executing [333@DLPN_DialPlan1:7]
Verbose("SIP/170-b3704ae0", "dur 0") 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'> -- Executing [333@DLPN_DialPlan1:8]
Verbose("SIP/170-b3704ae0", "id 1256822108.6") 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'> -- Executing [333@DLPN_DialPlan1:9]
Hangup("SIP/170-b3704ae0", "") 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'> == 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'> -- Executing [h@DLPN_DialPlan1:1]
Set("SIP/170-b3704ae0", "CDR(userfield)= Hangupcause:16")
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'> -- Executing [h@DLPN_DialPlan1:2]
DeadAGI("SIP/170-b3704ae0", "userfield.agi|1256822108.6|
Hangupcause:16") 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'> -- 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'> -- 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'> -- Executing [h@DLPN_DialPlan1:3]
NoOp("SIP/170-b3704ae0", "id 1256822108.6 time 8") 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'> -- Executing [h@DLPN_DialPlan1:4]
NoOp("SIP/170-b3704ae0", "caller hung up") 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'> -- Executing [h@DLPN_DialPlan1:5]
Hangup("SIP/170-b3704ae0", "") 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'> == 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> </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’m only using the csv CDR; perhaps these values are
better preserved/presented if you use the SQL CDR’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> </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> </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"'> <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>
> Date: Fri, 30 Oct 2009 01:20:02 +1300<br>
> From: lists@venturevoip.com<br>
> To: asterisk-users@lists.digium.com<br>
> Subject: Re: [asterisk-users] R: R: R: CDR(billsec)<br>
> <br>
> On 30/10/09 1:10 AM, Alexandru Oniciuc wrote:<br>
> ><br>
> > 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>
> ><br>
> > WOW: "On 29/10/09 5:56 AM, Alexandru Oniciuc wrote:" 12h
difference!<br>
> <br>
> :D Yeah based in New Zealand - we're just about ahead of everybody - in <br>
> fact it's 1:20 in the morning so I probably should go to sleep :)<br>
> <br>
> -- <br>
> Cheers,<br>
> <br>
> Matt Riddell<br>
> Director<br>
> _______________________________________________<br>
> <br>
> http://www.venturevoip.com/news.php (Daily Asterisk News)<br>
> http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)<br>
> http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)<br>
> <br>
> _______________________________________________<br>
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>
> <br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> 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>