<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="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 11 (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: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:-webkit-monospace;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Since CDR(billsec) is a live variable
until the Hangup command is issued (actually until the CDR is written), the
only way to get the value (IMO) would be after the call was completed. You
could do a DeadAGI or System call using CDR(uniqueid) to report the value from
the CDR back to another call or web page.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Anahi Ludueña<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, October 28, 2009
6:35 AM<br>
<b><span style='font-weight:bold'>To:</span></b> asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users]
CDR(billsec)</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>Hi people, when I try to get the billsec in the dialplan,
it is 0... but if after that I check the database, it is right (not 0).<br>
I'm trying to get it in the h extension, like:<br>
<br>
</span></font><span class=apple-style-span><font size=2 color=black
face=-webkit-monospace><span style='font-size:10.0pt;font-family:-webkit-monospace;
color:black'><span style='orphans: 2;widows: 2;word-spacing:0px'>exten =>
h,1,Noop(End)</span></font></span><font size=2 color=black
face=-webkit-monospace><span style='font-size:10.0pt;font-family:-webkit-monospace;
color:black'><br>
<span class=apple-style-span>exten => h,n,Noop(Time is ${CDR(billsec)})</span><br>
<span class=apple-style-span>....</span><br>
</span></font><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black'><br>
<span class=apple-style-span>Is it updated after the extension h is executed?
In that case, how can I get the call duration in the h extension?</span><br>
<span class=apple-style-span>Thanks,</span><br>
</span></font><font size=2 color=black face=-webkit-monospace><span
style='font-size:10.0pt;font-family:-webkit-monospace;color:black'><br>
<br>
<br>
<br>
</span></font><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'></span><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><strong><b><font
size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana;
font-weight:normal'>
<hr size=2 width="100%" align=center>
</span></font></b></strong></div>
<p class=MsoNormal align=center style='text-align:center'><strong><b><font
size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>Anahi
Ludueña</span></font></b></strong><o:p></o:p></p>
<p class=MsoNormal align=center style='text-align:center'><font size=2
face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> <o:p></o:p></span></font></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><br>
<br>
<o:p></o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>Todo el espacio y cuidado que merecen tus fotos digitales
lo tienes en Windows Live Fotos. <a
href="http://www.vivelive.com/compartirfotos/" target="_new">¡Pruébalo! </a><o:p></o:p></span></font></p>
</div>
</body>
</html>