[asterisk-bugs] [Asterisk 0015502]: Setting CDR(userfield) fails when called from inside a Macro initiated from a feature.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jul 14 17:00:57 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15502 
====================================================================== 
Reported By:                ruffle
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15502
Category:                   Resources/res_features
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.25 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-07-14 08:33 CDT
Last Modified:              2009-07-14 17:00 CDT
====================================================================== 
Summary:                    Setting CDR(userfield) fails when called from inside
a Macro initiated from a feature.
Description: 
I use a feature code to enable recording with MixMonitor (mapped to the
Record button on a snom FWIW). 

The feature calls a macro and in that macro I set CDR(userfield) with the
recording filename.

When the cdr record is written out (in cdr_mysql and in cdr-customer csv
format) the CDR(userfield) is blank.

If I set CDR(userfield) elsewhere in my dialplan, it does propogate
through to the CDR records correctly.

As I use the CDR(userfield) to get the recording filename in my web
interface this is a bit annoying :-(
====================================================================== 

---------------------------------------------------------------------- 
 (0107754) tilghman (administrator) - 2009-07-14 17:00
 https://issues.asterisk.org/view.php?id=15502#c107754 
---------------------------------------------------------------------- 
I don't think you can, from the callee channel.  Everything must be done
from the caller channel, as that is where the CDR is located.  Another
approach might be to create an inheritable variable before you create the
slave channel, then post a record to a database with the value in that
inherited variable, along with the value you want set, then associate the
two records together later. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-14 17:00 tilghman       Note Added: 0107754                          
======================================================================




More information about the asterisk-bugs mailing list