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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 22 20:20:59 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
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:                   block
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 219720 
Request Review:              
====================================================================== 
Date Submitted:             2009-09-22 20:20 CDT
Last Modified:              2009-09-22 20:20 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-22 20:20 falves11       New Issue                                    
2009-09-22 20:20 falves11       Asterisk Version          => SVN             
2009-09-22 20:20 falves11       Regression                => No              
2009-09-22 20:20 falves11       SVN Branch (only for SVN checkouts, not tarball
releases) =>  1.4            
2009-09-22 20:20 falves11       SVN Revision (number only!) => 219720          
======================================================================




More information about the asterisk-bugs mailing list