[asterisk-bugs] [Asterisk 0015936]: Billsec is zero when playing a file in the Dial function

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 22 15:37:54 CDT 2009


The following issue has been REOPENED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15936 
====================================================================== 
Reported By:                falves11
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15936
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   feature
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 14:49 CDT
Last Modified:              2009-09-22 15:37 CDT
====================================================================== 
Summary:                    Billsec is zero when playing a file in the Dial
function
Description: 
The Open Source 1.4 version of Asterisk will bill nothing, zero, if the
caller or callee hangs up before the file has finished playing, but will
record the duration of the call correctly, just the billsec amount is
wrong. It is very easy to duplicate. My dialplan is one line:
exten =>
_X.,1,Dial(Sip/${EXTEN}@XXX.XX.XX.XXX,25,CA(demo-instruct)L(1800000))

The file demo_instruct is part of asterisk's sounds and it is the longest
one. Just place a sip call and hangup a few seconds into the call. The CDR
will show zero  billsec, but duration will be 60+ seconds.


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

---------------------------------------------------------------------- 
 (0111221) falves11 (reporter) - 2009-09-22 15:37
 https://issues.asterisk.org/view.php?id=15936#c111221 
---------------------------------------------------------------------- 
The design is wrong since in before Asterisk plays the file  I execute a
macro, and in the first line of the macro I answer the call. But no billsec
is recorded. I know this is a bug because the behavior of the business
edition is reversed, but equally wrong. In the same scenario, the billsec
will be the length of the entire file played, even if it is 10 min long,
while the call may have lasted only a few seconds.
                                       
[inbound]         
exten =>
_X.,1,Dial(Sip/${EXTEN}@XX.XX.XX.XX,25,M(get-callid)A(demo-instruct)L(1800000))

                                                                          
                            
[macro-get-callid]                                                        
                                                                           

exten => s,1,Answer

The right design would be to start counting the billsec since we receive
an 200 OK from the second  leg of the call and also we should deliver this
200 OK to the caller immediately, which we are not doing now, apparently.
The way it is now we are missing a billable event, which is terrible,
actually, a deal-killer for any telecom carrier. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-22 15:37 falves11       Note Added: 0111221                          
2009-09-22 15:37 falves11       Status                   closed => new       
2009-09-22 15:37 falves11       Resolution               not fixable => reopened
======================================================================




More information about the asterisk-bugs mailing list