[asterisk-bugs] [Asterisk 0011553]: [patch] ChannelRedirect causes the channel executing it to terminate if any form of error occurs.

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Feb 19 12:36:56 CST 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11553 
====================================================================== 
Reported By:                johan
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   11553
Category:                   Applications/app_channelredirect
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.15  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-14-2007 11:05 CST
Last Modified:              02-19-2008 12:36 CST
====================================================================== 
Summary:                    [patch] ChannelRedirect causes the channel executing
it to terminate if any form of error occurs.
Description: 
When you use ChannelRedirect on a channel that does not exist the call will
be terminated, and the execution of the dial plan will end. Instead only
the error message should be returned, and the execution of the dial plan
can then continue as it should.

The enclosed patch change the behaviour of ChannelRedirect to set the
channel variable CR_STATUS to either SUCCESS, NOARGS, BADARGS, NOCHANNEL,
BADEXTENSION or FAIL, so that your dial plan does not have to crash and
burn in agony.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 02-19-08 12:36  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 103819

U   trunk/CHANGES
U   trunk/UPGRADE.txt
U   trunk/apps/app_channelredirect.c

------------------------------------------------------------------------
r103819 | file | 2008-02-19 12:36:55 -0600 (Tue, 19 Feb 2008) | 8 lines

Add CHANNELREDIRECT_STATUS variable to ChannelRedirect() dialplan
application. This will either be set to NOCHANNEL if the given channel was
not found or SUCCESS if it worked.
(closes issue http://bugs.digium.com/view.php?id=11553)
Reported by: johan
Patches:
      UPGRADE.txt.channelredirect.patch uploaded by johan (license 334)
      CHANGES.channelredirect.patch uploaded by johan (license 334)
      app_channelredirect-20080219.patch uploaded by johan (license 334)

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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-19-08 12:36  svnbot         Checkin                                      
02-19-08 12:36  svnbot         Note Added: 0082575                          
02-19-08 12:36  svnbot         Status                   feedback => assigned
02-19-08 12:36  svnbot         Assigned To               => file            
======================================================================




More information about the asterisk-bugs mailing list