[asterisk-bugs] [Asterisk 0016099]: 1.4 SVN branch does not write Userfield in CDR

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 26 10:43:56 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16099 
====================================================================== 
Reported By:                sethsdad
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16099
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 201993 
Request Review:              
====================================================================== 
Date Submitted:             2009-10-20 08:52 CDT
Last Modified:              2009-10-26 10:43 CDT
====================================================================== 
Summary:                    1.4 SVN branch does not write Userfield in CDR
Description: 
I'm trying to get hangup cause into my CDR because I'm getting intermittent
hangups on production calls.  I put the command 
Set(CDR(userfield)=${CDR(userfield)} Hangupcause:${HANGUPCAUSE})
into my dialplan after my Dial commands.  This works fine on 1.4.25.1 and
1.4.26.1, but does not work on the 1.4SVN branch I'm using in production.
====================================================================== 

---------------------------------------------------------------------- 
 (0112753) sethsdad (reporter) - 2009-10-26 10:43
 https://issues.asterisk.org/view.php?id=16099#c112753 
---------------------------------------------------------------------- 
Tested this today and find that problem is that cdr->userfield does not get
processed by cdr-csv.c on outgoing calls.   works fine on incoming calls.
The value gets set and can be verified via noop, but either gets reset or
just doesn't get processed for whatever reason.

this is CLI output
  -- Executing [6163010 at DLPN_DialPlan1:1] Macro("SIP/170-087d3320",
"trunkdial-failover-0.3|DAHDI/R1/w6163010||trunk_1|trunk_1") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:1]
Set("SIP/170-087d3320", "CALLERID(num)=") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:2]
GotoIf("SIP/170-087d3320", "0?1-dial|1") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:3]
Set("SIP/170-087d3320", "CALLERID(all)=DAHDI/R1") in new stack
    -- Executing [s at macro-trunkdial-failover-0.3:4]
Goto("SIP/170-087d3320", "1-dial|1") in new stack
    -- Goto (macro-trunkdial-failover-0.3,1-dial,1)
    -- Executing [1-dial at macro-trunkdial-failover-0.3:1]
Answer("SIP/170-087d3320", "") in new stack
    -- Executing [1-dial at macro-trunkdial-failover-0.3:2]
Dial("SIP/170-087d3320", "DAHDI/R1/w6163010|20|kKtTg") in new stack
    -- Called R1/w6163010
    -- DAHDI/1-1 answered SIP/170-087d3320
    -- Saved useragent "PolycomSoundPointIP-SPIP_501-UA/3.1.2.0392" for
peer 170
    -- Hungup 'DAHDI/1-1'
    -- Executing [1-dial at macro-trunkdial-failover-0.3:3]
Set("SIP/170-087d3320", "CDR(userfield)=foo:16_US") in new stack
    -- Executing [1-dial at macro-trunkdial-failover-0.3:4]
GotoIf("SIP/170-087d3320", "0 > 0 ?1-ANSWER|1:1-out|1") in new stack
    -- Goto (macro-trunkdial-failover-0.3,1-out,1)
    -- Executing [1-out at macro-trunkdial-failover-0.3:1]
Hangup("SIP/170-087d3320", "") in new stack
  == Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited
non-zero on 'SIP/170-087d3320' in macro 'trunkdial-failover-0.3'
  == Spawn extension (DLPN_DialPlan1, 6163010, 1) exited non-zero on
'SIP/170-087d3320'
    -- Executing [h at macro-trunkdial-failover-0.3:1]
Set("SIP/170-087d3320", "CDR(userfield)=foo:16_US Hangupcause:16") in new
stack
    -- Executing [h at macro-trunkdial-failover-0.3:2]
NoOp("SIP/170-087d3320", "uf=foo:16_US Hangupcause:16") in new stack
    -- Executing [h at macro-trunkdial-failover-0.3:3]
NoOp("SIP/170-087d3320", "Hangup Cause:16") in new stack
    -- Executing [h at macro-trunkdial-failover-0.3:4]
ForkCDR("SIP/170-087d3320", "hangcause=16") in new stack
    -- Executing [h at macro-trunkdial-failover-0.3:5]
Hangup("SIP/170-087d3320", "16") in new stack
  == Spawn extension (macro-trunkdial-failover-0.3, h, 5) exited non-zero
on 'SIP/170-087d3320'

this is CDR record
"","","6163010","DLPN_DialPlan1","DAHDI/R1","SIP/170-087d3320","DAHDI/1-1","Dial","DAHDI/R1/w6163010|20|kKtTg","2009-10-26
10:20:38","2009-10
-26 10:20:42","2009-10-26
10:20:57",19,15,"ANSWERED","DOCUMENTATION","1256570438.0","" 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-26 10:43 sethsdad       Note Added: 0112753                          
======================================================================




More information about the asterisk-bugs mailing list