[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
Wed Jan 30 20:37:42 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11553 
====================================================================== 
Reported By:                johan
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11553
Category:                   Applications/app_channelredirect
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
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:              01-30-2008 20:37 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.
====================================================================== 

---------------------------------------------------------------------- 
 johan - 01-30-08 20:37  
---------------------------------------------------------------------- 
Please test this patch, and the related 0011753.
I've used this patch for 1.4 and it is working great but I've had much
trouble when porting it to svn. For me this patch works as good (bad) as
ChannelRedirect works originally. 

I really don't know where to look..

The problem (described in 0011753) - is that a channel waiting, playing or
so is "stuck" on priority 0 until the current command is finished, then the
right priority is executed.

I'm so confused... 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-30-08 20:37  johan          Note Added: 0081482                          
======================================================================




More information about the asterisk-bugs mailing list