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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 4 15:45:02 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15936 
====================================================================== 
Reported By:                falves11
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   15936
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     ready for review
Asterisk Version:           SVN 
JIRA:                       SWP-231 
Regression:                 No 
Reviewboard Link:            
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-11-04 15:45 CST
====================================================================== 
Summary:                    [patch] 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.


  
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016005 [patch] Call does not drop when caller ...
====================================================================== 

---------------------------------------------------------------------- 
 (0113153) svnbot (reporter) - 2009-11-04 15:45
 https://issues.asterisk.org/view.php?id=15936#c113153 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 227897

U   trunk/CHANGES
U   trunk/apps/app_dial.c

------------------------------------------------------------------------
r227897 | mnicholson | 2009-11-04 15:45:01 -0600 (Wed, 04 Nov 2009) | 11
lines

Added the 'a' option to app dial and modified app_dial to set the
answertime when the called channel answers.

This change causes answertime to be correct even if the called channel
hangs up during an announcement triggered by the A() option.

(closes issue https://issues.asterisk.org/view.php?id=15936)
Reported by: falves11
Patches:
      dial-macro-billsec-fix1.diff uploaded by mnicholson (license 96)
      dial-caller-answer1.diff uploaded by mnicholson (license 96)
Tested by: falves11, mnicholson

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=227897 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-04 15:45 svnbot         Checkin                                      
2009-11-04 15:45 svnbot         Note Added: 0113153                          
======================================================================




More information about the asterisk-bugs mailing list