[asterisk-users] Asterisk 1.6.0 CDR billsec and duration not working from h extension

Eric Chamberlain eric at rf.com
Thu Oct 9 16:09:08 CDT 2008


Can someone tell me what I am doing wrong?  Why doesn't CDR(duration)  
or CDR(billsec) return the correct values?

cdr.conf

endbeforehexten=yes


extensions.conf

[macro-Dial]
; ${ARG1} - Dial String

exten => s,1,Dial(${ARG1},,M(post-dial))

exten => h,1,NoOp(Call was hung up - ${CDR(duration)} seconds long,  
billed for ${CDR(billsec)} seconds)


The log shows:

     -- Executing [h at macro-Dial:1] NoOp("SIP/10.10.10.170-b7d94f78",  
"Call was hung up - 0 seconds long, billed for 0 seconds") in new stack


But cdr-csv/Master.csv has logged time values for duration and billsec:

"","5105550000","+4155550001","pop-inbound","""15105550000""  
<5105550000>","SIP/10.10.10.170-b7d94f78","SIP/ 
voipprovider.com-089ae8a0","Dial","SIP/15105550000:password::authname at voipprovider.com 
,,M(post-dial)","2008-10-09 20:59:00","2008-10-09  
20:59:03","2008-10-09 20:59:08", 
8,5,"ANSWERED","DOCUMENTATION","1223585940.35"


--
Eric Chamberlain










More information about the asterisk-users mailing list