[asterisk-bugs] [Asterisk 0015941]: billsec not available in "h" extensions

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 23 09:33:24 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15941 
====================================================================== 
Reported By:                falves11
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15941
Category:                   Applications/app_cdr
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 219720 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-09-22 20:20 CDT
Last Modified:              2009-09-23 09:33 CDT
====================================================================== 
Summary:                    billsec not available in "h" extensions
Description: 
The help for cdr.conf says that if we set 
endbeforehexten=yes      

the we may retrieve the cdr values in the "h" extension. This is not
happening in this scenario. However, the correct amount is written to the
cdr, therefore, there is a bug. This my dialplan

[teliax]                                                                  
                                                                           
                         
exten => _X.,1,Set(PROMPT=demo-instruct)                                  
                                                                           
                         
exten =>
_X.,2,Dial(Sip/${EXTEN}@X.X.X.X,25,M(get-callid^${PROMPT})L(1800000))      
                                                                           
            
exten => h,1,Verbose(0,${DIALSTATUS} Seconds ${CDR(billsec)}              
                                                                           
                         
exten => h,n,GotoIf($["${DIALSTATUS}" = "ANSWER" & "$(CDR(billsec)}" =
"0"]?label1:label2)                                                        
                             
exten => h,n(label1),Set(CDR(amaflags|r)=billing)                         
                                                                           
                         
exten => h,n(label2),Verbose(0,${CDR(amaflags)})                          
                                                                           
                         
                                                                          
                                                                           
                         
[macro-get-callid]                                                        
                                                                           
                         
exten => s,1,Background(${ARG1})                                          
                                                                           
                         
                                                  
Note:
If the call hangs up on the second leg, the outbound leg, before the file
ends playing, the cdr reflects the correct information. It proves the the
CDR has the information, but does not make it available to the "h"
extension, contrary to the specification.

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-23 09:33 lmadsen        Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list