[asterisk-bugs] [Asterisk 0013728]: After upgrading to 1.4.22 from 1.4.21.1 CDRs behave wrongly

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 1 17:07:35 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13728 
====================================================================== 
Reported By:                hesser
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13728
Category:                   CDR/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.22 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-17 09:31 CDT
Last Modified:              2008-12-01 17:07 CST
====================================================================== 
Summary:                    After upgrading to 1.4.22 from 1.4.21.1 CDRs behave
wrongly
Description: 
After the upgrade I am no longer able to set userfield nor accountcode
variables in the CDR for my SQL backend. CSV does not work either. Also,
there are no 2 identical call records in the database, whereas before,
there were 2 individual records. 
I am using the external interface to create a call from the from-internal
context. Once the call is answered, it passes it to a context in extensions
conf.
In there I am using exten => queue1,2,Set(CDR(accountcode)= "1234").
That used to set the record properly. It no longer does. I looked at the
cdr.c in main and there are changes in regards to locked records, etc. I
think that is where the issue comes from. Why were these changes
implemented?

Kind regards
Holger
====================================================================== 

---------------------------------------------------------------------- 
 (0095658) murf (administrator) - 2008-12-01 17:07
 http://bugs.digium.com/view.php?id=13728#c95658 
---------------------------------------------------------------------- 
Playing with the current 1.4 svn head, I created a fixed manager script:

Action: Originate
Channel: Dahdi/1
Exten: 8786
Context: extension
Priority: 1
Timeout: 10000
CallerID: d1a
Account: ManPlacedCall


for extension,8786 I have:

  '8786' =>         1. Set(CDR(accountcode)=1x334tq2z)           
[pbx_ael]
                    2. set(CDR(userfield)=userfield1)            
[pbx_ael]
                    3. Dial(Dahdi/2|10|tTwWkK)                   
[pbx_ael]                                                                  
                                                           


and my CDR looks like:

""d1a"
<101>","101","8786","extension","DAHDI/1-1","DAHDI/2-1","Dial","Dahdi/2|10|tTwWkK","2008-12-01
15:40:21","2008-12-01 15:40:24","2008-12-01
15:40:27","6","3","ANSWERED","DOCUMENTATION","1x334tq2z","1228171221.15","userfield1",""

(If I don't set the accountcode in the dialplan, then the set in the
Originate command is not overridden, and the accountcode is set to
ManPlacedCall.

So, this looks good to me. Please verify that the current SVN works
correctly, and if not, please help me reproduce your problems. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-01 17:07 murf           Note Added: 0095658                          
======================================================================




More information about the asterisk-bugs mailing list