[asterisk-bugs] [Asterisk 0016347]: Custom CDR values not logged when dialing with local channels

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Nov 29 20:11:47 CST 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16347 
====================================================================== 
Reported By:                parisioa
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16347
Category:                   Applications/app_cdr
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 231301 
Request Review:              
====================================================================== 
Date Submitted:             2009-11-29 20:11 CST
Last Modified:              2009-11-29 20:11 CST
====================================================================== 
Summary:                    Custom CDR values not logged when dialing with local
channels
Description: 
I'm using the AGI to generate outobund calls using local channels to
provide a Dial button so that agents don't have to dial their phones.

The problem is if i use Channel: Local/$extension at inside-leg the custom
CDR values i set do not get logged in cdr-custom.  If i use Channel:
SIP/$extension the values do get logged properly.  The standard CDR values
get logged, but anything else doesn't that i make up on my own for instance
CDR(uicallid) will not get passed through.

if i show the channel during a call, it will not show the variables having
been set, but if i turn on verbosity i can see the SET command set the
variable, and if i do a NoOp on the variable it will print out on the
console.  

 core show channel SIP/OCS_TRUNK-00000016 (dialed directly using SIP/)

  CDR Variables:
level 1: uicallid=12341
level 1: acd=6166
level 1: extension=1594
level 1: clid="2128675309" <18002662278>
level 1: src=18002662278
level 1: dst=18002662278
level 1: dcontext=outbound-autodialer
level 1: channel=SIP/OCS_TRUNK-00000016
level 1: dstchannel=SIP/bandwidth-primary-00000017
level 1: lastapp=Dial
level 1:
lastdata=SIP/+18002662278 at bandwidth-primary,,M(setvmid^12341^1594)
level 1: start=2009-11-29 17:58:52
level 1: answer=2009-11-29 17:59:01
level 1: duration=11
level 1: billsec=3
level 1: disposition=ANSWERED
level 1: amaflags=DOCUMENTATION
level 1: accountcode=999
level 1: uniqueid=1259546332.28

core show channel SIP/1594-00000019 (created with local channel)

  CDR Variables:
level 1: clid=18002662278
level 1: src=18002662278
level 1: dst=18002662278
level 1: dcontext=outbound-autodialer
level 1: channel=SIP/1594-00000019
level 1: dstchannel=SIP/bandwidth-primary-0000001a
level 1: start=2009-11-29 17:59:45
level 1: answer=2009-11-29 17:59:49
level 1: duration=12
level 1: billsec=7
level 1: disposition=ANSWERED
level 1: amaflags=DOCUMENTATION
level 1: accountcode=999
level 1: uniqueid=1259546383.33

console output setting the variables:
    -- Executing [18002662278 at outbound-autodialer:3]
Set("Local/1594 at inside-leg-0784;1", "CDR(extension)=1594") in new stack
    -- Executing [18002662278 at outbound-autodialer:4]
Set("Local/1594 at inside-leg-0784;1", "CDR(acd)=6166") in new stack
    -- Executing [18002662278 at outbound-autodialer:5]
Set("Local/1594 at inside-leg-0784;1", "CDR(accountcode)=999") in new stack
    -- Executing [18002662278 at outbound-autodialer:6]
Set("Local/1594 at inside-leg-0784;1", "CDR(uicallid)=12341") in new stack


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-29 20:11 parisioa       New Issue                                    
2009-11-29 20:11 parisioa       Asterisk Version          => SVN             
2009-11-29 20:11 parisioa       Regression                => No              
2009-11-29 20:11 parisioa       SVN Branch (only for SVN checkouts, not tarball
releases) => 1.6.1           
2009-11-29 20:11 parisioa       SVN Revision (number only!) => 231301          
======================================================================




More information about the asterisk-bugs mailing list