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 [EMAIL PROTECTED]: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::[EMAIL PROTECTED] 
,,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








_______________________________________________
-- 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

Reply via email to