[asterisk-bugs] [Asterisk 0016687]: [patch] app_dial gosub does not pass back GOSUB_RETVAL

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Feb 2 11:43:11 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16687 
====================================================================== 
Reported By:                bklang
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16687
Category:                   Applications/app_dial
Reproducibility:            N/A
Severity:                   tweak
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-791 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!): 242606 
Request Review:              
====================================================================== 
Date Submitted:             2010-01-24 23:29 CST
Last Modified:              2010-02-02 11:43 CST
====================================================================== 
Summary:                    [patch] app_dial gosub does not pass back
GOSUB_RETVAL
Description: 
When calling a Gosub routine (Dial with U() option) the GOSUB_RETVAL
variable is not propagated back to the calling channel.  This makes it
effectively impossible to alter the behavior of the dialplan by having the
Gosub routine set a value with the Result application.

This patch alters app_dial to check for the GOSUB_RETVAL channel variable
on the called channel (peer) and, if set, set it on the calling channel
(chan).
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016686 [patch] app_dial does not respect GOSUB...
====================================================================== 

---------------------------------------------------------------------- 
 (0117538) bklang (reporter) - 2010-02-02 11:43
 https://issues.asterisk.org/view.php?id=16687#c117538 
---------------------------------------------------------------------- 
Sorry about that, I'll go fix the indentation.

I originally generated this patch against trunk, without the related
ticket https://issues.asterisk.org/view.php?id=16686.  Would you like the
updated patch to be based against 1.6.2
SVN or against 1.6.2 with the patch from
https://issues.asterisk.org/view.php?id=16686?  It's a very simple patch
either way, just let me know. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-02 11:43 bklang         Note Added: 0117538                          
======================================================================




More information about the asterisk-bugs mailing list