[asterisk-bugs] [Asterisk 0013851]: Unlimited call for limited calls under 1 seconds (L option)

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 12 15:19:03 CST 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13851 
====================================================================== 
Reported By:                ruddy
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13851
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-11-06 15:42 CST
Last Modified:              2008-11-12 15:19 CST
====================================================================== 
Summary:                    Unlimited call for limited calls under 1 seconds (L
option)
Description: 
Hi.
The issue was regarding the use of the L option to limit the maximum
duration of a call.
When we use anything more than 1 second (eg: L(1000)), the feature works
ok.
But any value under 1000 ms will result on an unlimited call. (eg:
L(900))
In that case, we have the message :
 -- Setting call duration limit to 0 seconds.

This seems to be there because in app_dial, we do :
calldurationlimit = timelimit / 1000; --> which give 0 for anything under
1000 ms
and 
if (calldurationlimit > 0) {
     peer->whentohangup = time(NULL) + calldurationlimit;
}
So, we never set when to hangup.

My suggestion will then be :
- make sure that we really support durations under 1 second 
- make sure that we setup whentohangup field correlty.

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

---------------------------------------------------------------------- 
 (0094823) svnbot (reporter) - 2008-11-12 15:19
 http://bugs.digium.com/view.php?id=13851#c94823 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 156386

U   branches/1.4/apps/app_dial.c

------------------------------------------------------------------------
r156386 | tilghman | 2008-11-12 15:19:02 -0600 (Wed, 12 Nov 2008) | 5
lines

When using call limits under 1 second, infinite call lengths are allowed,
instead.
(closes issue http://bugs.digium.com/view.php?id=13851)
 Reported by: ruddy

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-12 15:19 svnbot         Note Added: 0094823                          
2008-11-12 15:19 svnbot         Status                   acknowledged =>
resolved
2008-11-12 15:19 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list