[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
Wed Jul 15 03:27:34 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-15 03:27 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 :-(
====================================================================== 

---------------------------------------------------------------------- 
 (0107764) ruffle (reporter) - 2009-07-15 03:27
 https://issues.asterisk.org/view.php?id=15502#c107764 
---------------------------------------------------------------------- 
OK I'll explore that thanks.

However.... in my example above, the CDR(userfield) still doesn't make it
to the cdr records if I use the *8 feature on the originating (calling)
channel.

Console log when call originated from SIP/112 to SIP/117

-- Executing [s at macro-russelltest:1] Set("SIP/112-00860da0",
"CDR(userfield)="Banana"") in new stack
-- Executing [s at macro-russelltest:2] MacroExit("SIP/112-00860da0", "") in
new stack

and the CDR record:

""Russell Brown"
<01780XXXXXX>","01780XXXXXX","117","from-sip","SIP/112-00860da0","SIP/117-008b7850","Dial","SIP/117|20|wWtTkK","2009-07-15
09:17:35","2009-07-15 09:17:36","2009-07-15
09:17:57","22","21","ANSWERED","DOCUMENTATION","Sales","lls-1247645855.5020",""

as you can see the userfield is still blank even though the CDR(userfield)
was set on the calling channel. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-15 03:27 ruffle         Note Added: 0107764                          
======================================================================




More information about the asterisk-bugs mailing list