[Asterisk-Users] the correct way to stop a CDR?
Matthew Boehm
mboehm at cytelcom.com
Tue Jan 4 12:33:24 MST 2005
Hey gang,
Currently I have this dialplan:
exten => _9.,1,Dial(blah/blah)
exten => h,1,ResetCDR(w)
exten => h,2,NoCDR()
exten => h,3,DeadAGI(rate_call.php)
The AGI script takes the completed call, determines all that NPNAXX crap,
finds the cost and then updates the CDR with the cost.
Problem is, I keep getting these messages:
Jan 4 13:25:36 WARNING[13689]: cdr.c:114 ast_cdr_free: CDR on channel
'SIP/3091-c362' not posted
Jan 4 13:25:36 WARNING[13689]: cdr.c:116 ast_cdr_free: CDR on channel
'SIP/3091-c362' lacks end
These messages are being generated by NoCDR. Is there a better way to
stop/post a CDR?
I am considering adding a flag to ResetCDR(x) so that if you pass this flag,
it stops the CDR, posts it, then frees it.
Any thoughts? Ideas on a better way to rate the call?
Thanks,
Matthew
More information about the asterisk-users
mailing list