[asterisk-users] R: R: CDR(billsec)

Matt Riddell lists at venturevoip.com
Thu Oct 29 06:44:17 CDT 2009


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)



More information about the asterisk-users mailing list