[asterisk-bugs] [Asterisk 0019316]: [patch] Generating output using cdr_custom backend is corrupt because of pbx.c
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu May 19 14:29:57 CDT 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=19316
======================================================================
Reported By: XyESe
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 19316
Category: Core/PBX
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.8.4
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2011-05-18 07:22 CDT
Last Modified: 2011-05-19 14:29 CDT
======================================================================
Summary: [patch] Generating output using cdr_custom backend
is corrupt because of pbx.c
Description:
Then use cdr_custom with use this fields in cdr_custom.conf:
simple.csv =>
${CDR(answer)},${CDR(src)},${CDR(dst)},${CDR(billsec)},${SHELL(echo -n
test)}
Used dialplan sample:
exten => 100,1,Answer()
exten => 100,n,Echo()
exten => 200,1,Wait(100)
And make calls: 100 (answered call) and 200 (unanswered call)
Then in sample.csv I have this output:
4400,100,2011-05-18 08:49:22,3,3test
4400,200,4492,0,0test
Third and fifth field are corrupted. Fifth field append result to previous
value. Third field copy previous value if result is null.
This is because in pbx.c string variable are not reseted in all cases.
With my patch output get corrected:
4400,100,2011-05-18 09:06:15,10,test
4400,200,,0,test
======================================================================
----------------------------------------------------------------------
(0135169) lmadsen (administrator) - 2011-05-19 14:29
https://issues.asterisk.org/view.php?id=19316#c135169
----------------------------------------------------------------------
You must sign the license agreement prior to uploading patches. Thanks!
Issue History
Date Modified Username Field Change
======================================================================
2011-05-19 14:29 lmadsen Note Added: 0135169
======================================================================
More information about the asterisk-bugs
mailing list