[asterisk-bugs] [Asterisk 0018267]: CDR fields not written after call is bridged
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Nov 5 16:09:53 CDT 2010
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=18267
======================================================================
Reported By: pjois
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18267
Category: CDR/General
Reproducibility: have not tried
Severity: major
Priority: normal
Status: new
Asterisk Version: 1.6.2.13
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-11-05 16:09 CDT
Last Modified: 2010-11-05 16:09 CDT
======================================================================
Summary: CDR fields not written after call is bridged
Description:
I'm finding that writing to CDR writeable fields (userfield, accountcode,
amaflags, [custom field]) does not work after a call goes to DIAL. This
can be confirmed in two ways. One is to execute the following:
[extensions]
exten => 1234,1,NOOP
exten => 1234,n,DIAL(SIP/someguy,10,g)
exten => 1234,n,SET(CDR(userfield)=test)
This does not set the userfield to "test" as expected when SIP/someguy
hangs up.
The other method to verify this is to execute the following:
[extensions]
exten => 1234,1,NOOP
exten => 1234,n,DIAL(SIP/someguy)
SIP/someguy keeps the call alive, and from the manager interface, issue
the following:
Action: Setvar
Channel: SIP/myphone-00000074
Variable: CDR(userfield)
Value: test
Again, the command returns success, but the userfield remains blank.
However, if you issue the command before the call gets to DIAL, then the
userfield is written as expected.
For example, the following works perfectly:
[extensions]
exten => 1234,1,NOOP
exten => 1234,n,SET(CDR(userfield)=test)
exten => 1234,n,DIAL(SIP/someguy)
This seems like an issue with DIAL specifically because using something
like WAIT does not result in this problem:
[extensions]
exten => 1234,1,NOOP
exten => 1234,n,WAIT(1)
exten => 1234,n,SET(CDR(userfield)=test)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-11-05 16:09 pjois New Issue
2010-11-05 16:09 pjois Asterisk Version => 1.6.2.13
2010-11-05 16:09 pjois Regression => No
2010-11-05 16:09 pjois SVN Branch (only for SVN checkouts, not tarball
releases) => N/A
======================================================================
More information about the asterisk-bugs
mailing list