[asterisk-bugs] [Asterisk 0015758]: Park application expects timeout to be in Milliseconds

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 20 16:18:28 UTC 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15758 
====================================================================== 
Reported By:                mmurdock
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   15758
Category:                   Features/Parking
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-08-21 16:22 CDT
Last Modified:              2010-12-20 10:18 CST
====================================================================== 
Summary:                    Park application expects timeout to be in
Milliseconds
Description: 
When using the park() application the timeout has to be set in
milliseconds.  It is expected that this be in seconds.

If this is your dialplan:
exten => _7Z,n,Set(PARKINGEXTEN=702)
exten => _7Z,n,Park(60,park-dial,9999,1)

This is what you will see on the console
Parked SIP/1123-b700c008 on 702 (lot default). Will timeout back to
extension [park-dial] 9999, 1 in 0 seconds

If I change it to this:
exten => _7Z,n,Set(PARKINGEXTEN=702)
exten => _7Z,n,Park(60000,park-dial,9999,1)

This is what I see and it does time out in 60 seconds.
== Parked SIP/1135-0910b0a0 on 702 (lot default). Will timeout back to
extension [park-dial] 9999, 1 in 60 seconds
====================================================================== 

---------------------------------------------------------------------- 
 (0129800) svnbot (reporter) - 2010-12-20 10:18
 https://issues.asterisk.org/view.php?id=15758#c129800 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 299088

_U  branches/1.8/
U   branches/1.8/main/features.c

------------------------------------------------------------------------
r299088 | lmadsen | 2010-12-20 10:18:27 -0600 (Mon, 20 Dec 2010) | 13
lines

Merged revisions 299087 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r299087 | lmadsen | 2010-12-20 10:18:03 -0600 (Mon, 20 Dec 2010) | 5
lines
  
  Note that Park() timeout is milliseconds.
  
  (closes issue https://issues.asterisk.org/view.php?id=15758)
  Reported by: mmurdock
  Tested by: mmurdock, seanbright
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-20 10:18 svnbot         Checkin                                      
2010-12-20 10:18 svnbot         Note Added: 0129800                          
======================================================================




More information about the asterisk-bugs mailing list