<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Those variables are only set on hangup. You can have a look at the caller profile to get the answered time if you want to process that before hangup.<div><br></div><div>Math</div><div><br><div><div><div><div>On 11-May-09, at 7:56 PM, Diego Toro wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;"><div>Hi,</div> <div>&nbsp;</div> <div>I need get call duration after bridge application using mod_managed, my code:</div> <div><br>&nbsp;Session.Execute("bridge", sbNewOutBoundNum);<br>&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp; Debug("billsec :" + _Session.GetVariable("billsec"));<br>&nbsp;&nbsp; Debug("duration :" + _Session.GetVariable("duration"));<br>&nbsp; </div> <div>The bridge is ok, but&nbsp;the variable value duration&nbsp;and&nbsp;billsec is zero (0).</div> <div>&nbsp;</div> <div>Diego<br><br>--- On <b>Sun, 5/10/09, Michael S Collins <i>&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></i></b> wrote:<br></div> <blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><br><br><br> <div id="yiv1275186629"> <div>Do you mean from the CDR? I recommend XML CDRs because they give tons of information. If you are talking about gathering this stuff midcall then you'll need to supply more information about your setup.&nbsp;</div> <div><br></div> <div>-MC<br><br>Sent from my iPhone</div> <div><br>On May 10, 2009, at 6:17 PM, Diego Toro &lt;<a href="http://us.mc335.mail.yahoo.com/mc/compose?to=dftoro@yahoo.com" target="_blank" rel="nofollow" ymailto="mailto:dftoro@yahoo.com">dftoro@yahoo.com</a>> wrote:<br><br></div> <div></div> <blockquote type="cite"> <div> <table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top"> <div>Hi,</div> <div>How can I get call durantion after bridge application ? &nbsp;I tried with billsec and duration but I don't get any value.</div> <div>&nbsp;</div> <div>Thank you</div></td></tr></tbody></table><br></div></blockquote> <blockquote type="cite"> <div><span>_______________________________________________</span><br><span>Freeswitch-users mailing list</span><br><span><a href="http://us.mc335.mail.yahoo.com/mc/compose?to=Freeswitch-users@lists.freeswitch.org" target="_blank" rel="nofollow" ymailto="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="nofollow">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="nofollow"></a><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="nofollow">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org/" target="_blank" rel="nofollow">http://www.freeswitch.org</a></span><br></div></blockquote></div><br>-----Inline Attachment Follows-----<br><br> <div class="plainMail">_______________________________________________<br>Freeswitch-users mailing list<br><a href="http://us.mc335.mail.yahoo.com/mc/compose?to=Freeswitch-users@lists.freeswitch.org" ymailto="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br></div></blockquote></td></tr></tbody></table><br>       _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div></div></body></html>