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 :]
WOW: "On 29/10/09 5:56 AM, Alexandru Oniciuc wrote:" 12h difference! -----Messaggio originale----- Da: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] Per conto di Matt Riddell Inviato: giovedì 29 ottobre 2009 12.44 A: asterisk-users@lists.digium.com Oggetto: Re: [asterisk-users] R: R: CDR(billsec) On 29/10/09 5:56 AM, Alexandru Oniciuc wrote: > I used 1.4.21 and this(${CDR(duration)}) didn't work: > > exten => h,1,Verbose(>> (${CDR(dst)}) # Call from ${CDR(clid)} ended at > ${STRFTIME(${EPOCH},,%d/%m/%Y %H:%M:%S)}. Duration(sec): ${CDR(duration)}.) Make sure you have "endbeforehexten" set to yes in /etc/asterisk/cdr.conf ; Normally, CDR's are not closed out until after all extensions are ; finished executing. By enabling this option, the CDR will be ended ; before executing the "h" extension so that CDR values such as "end" ; and "billsec" may be retrieved inside of of this extension. endbeforehexten=yes -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems) _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users