[asterisk-bugs] [Asterisk 0014662]: SetVar from Cli or AMI not	showing value on CDR Record
    Asterisk Bug Tracker 
    noreply at bugs.digium.com
       
    Tue Apr 21 15:19:30 CDT 2009
    
    
  
A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14662 
====================================================================== 
Reported By:                sum
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   14662
Category:                   CDR/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.0.6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-13 09:52 CDT
Last Modified:              2009-04-21 15:19 CDT
====================================================================== 
Summary:                    SetVar from Cli or AMI not showing value on CDR
Record
Description: 
Setting a value of CDR like:
CDR(userfield) or a custom variable CDR(test) are not shown on cdr record
(MySQL Backend), when you check channel variables these looks ok, but at
the moment of hangup and check CDR record there is nothing there.
If I set te variable from the Dialplan works fine.
====================================================================== 
---------------------------------------------------------------------- 
 (0103556) mnicholson (administrator) - 2009-04-21 15:19
 http://bugs.digium.com/view.php?id=14662#c103556 
---------------------------------------------------------------------- 
With cdr_custom this works fine for me.
cdr_custom.conf:
[mappings]
Master.csv => "${CDR(type)}"
extensions.conf:
[default]
exten => 100,1,Noop
exten => 100,n,Answer
exten => 100,n,Wait(30)
exten => 100,n,Hangup
core set chanvar SIP/chan-1234abc CDR(type) type
That produces a line with "type" on it in Master.csv.  Userfield should
work with cdr_csv, but custom variables won't.  I tested with the latest
SVN version of 1.6.0 (r189666).
How exactly are you reproducing this bug?  Also please test with
cdr_custom so that we can better classify this as either a general cdr bug
or a bug with cdr_mysql. 
Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-21 15:19 mnicholson     Note Added: 0103556                          
======================================================================
    
    
More information about the asterisk-bugs
mailing list