[asterisk-bugs] [Asterisk 0015380]: Park() application options not working as documented

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 8 12:26:28 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15380 
====================================================================== 
Reported By:                DLNoah
Assigned To:                dbrooks
====================================================================== 
Project:                    Asterisk
Issue ID:                   15380
Category:                   Applications/app_parkandannounce
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-22 14:20 CDT
Last Modified:              2009-07-08 12:26 CDT
====================================================================== 
Summary:                    Park() application options not working as documented
Description: 
I recently updated one of my Asterisk servers to 1.6.1.1 and was trying to
make use of the new options available in the Park() dialplan application. 
I found the following two issues with these options:

1) The "timeout" option is expecting its argument in milliseconds.  This
is not documented in the CLI documentation for the function and is contrary
to the behavior of several other dialplan applications (such as Dial and
WaitExten), which take their timeout argument in seconds.

2) The "returncontext", "returnextension", and "returnpriority" options
are being ignored.  In my specific case, I have comebacktoorigin = no set
within features config.  If I park the call such as
Park(180000,incoming-general,s,1), the following console output will occur
on timeout:
  == Timeout for IAX2/dundi-directlink-7325 parked on 1071 (default).
Returning to parkedcallstimeout,IAX20dundi-directlink,1
  == Starting IAX2/dundi-directlink-7325 at
parkedcallstimeout,IAX20dundi-directlink,1 failed so falling back to exten
's'


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014741 Timed out parked calls always return to...
====================================================================== 

---------------------------------------------------------------------- 
 (0107484) svnbot (reporter) - 2009-07-08 12:26
 https://issues.asterisk.org/view.php?id=15380#c107484 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 205254

U   trunk/main/features.c

------------------------------------------------------------------------
r205254 | dbrooks | 2009-07-08 12:26:27 -0500 (Wed, 08 Jul 2009) | 8 lines

Fixes Park() argument handling

Park() was not respecting the arguments passed to it. Any
extension/context/priority
given to it was being ignored. This patch remedies this.

(closes issue https://issues.asterisk.org/view.php?id=15380)
Reported by: DLNoah

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-08 12:26 svnbot         Checkin                                      
2009-07-08 12:26 svnbot         Note Added: 0107484                          
======================================================================




More information about the asterisk-bugs mailing list