[asterisk-bugs] [Asterisk 0018522]: CDR fileds not being written from "h" extension or after "Dial" command completes.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jan 4 15:40:14 UTC 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18522 
====================================================================== 
Reported By:                zktech
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18522
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.8 
SVN Revision (number only!): 297535 
Request Review:              
====================================================================== 
Date Submitted:             2010-12-23 10:05 CST
Last Modified:              2011-01-04 09:40 CST
====================================================================== 
Summary:                    CDR fileds not being written from "h" extension or
after "Dial" command completes.
Description: 
We have dial macros that handle our dialing. we use both the "g" and "e"
options in the Dial command so that we can store addtional data after the
call is hung up. The issue is that when a call is hung up and we do a
Set(CDR(field)=value) the value is not stored. Any vlaue set before the
dial is made is stored correctly but nothing after the dial. We have
confirmed that endbeforehexten=no but this does not seem to have any
bearing on the issue. It appears that the cdr is written before any updates
can be made using the "g" or "e" process options. I have included a small
snip of code in the Additonal Info field here.  Tested on 1.6.2.14 and
1.8/SVN
====================================================================== 

---------------------------------------------------------------------- 
 (0130126) davidw (reporter) - 2011-01-04 09:40
 https://issues.asterisk.org/view.php?id=18522#c130126 
---------------------------------------------------------------------- 
I think this is a "feature", rather than a bug.  The bridge and channel
CDRs get swapped in the "h" extension code and swapped back afterwards, or
something similar.  We worked round this sort of thing by using ResetCDR to
force the CDR out.

Also, I seem to remember this question on the Asterisk Forum.  If it was,
you should include a link, so that people can see the full discussion. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-04 09:40 davidw         Note Added: 0130126                          
======================================================================




More information about the asterisk-bugs mailing list