Summary:ASTERISK-13557: [patch] AMI Redirect hangs up channel if it is in Background()
Reporter:James Terhune (bigjimmy)Labels:
Date Opened:2010-01-07 13:04:01.000-0600Date Closed:2010-01-11 14:25:43.000-0600
Versions:Frequency of
Environment:Attachments:( 0) patch.1428-background
Description:When using the Asterisk Manager interface to redirect a channel, it hangs up the channel if it is in the dialplan executing Background().  Other applications, such as Playback don't have this problem.

/var/log/asterisk/full give me this odd error:
[Jan  7 10:54:05] WARNING[23048] pbx.c: Channel 'SIP/104-00000003' sent into invalid extension '?' in context 'agentconnect0', but no invalid handler

The invalid extension displayed is char(255).


On line 5771 of main/pbx.c (at the end of pbx_builtin_background), it stuffs the res variable into the extension string without checking if res is -1
Comments:By: David Woolley (davidw) 2010-01-08 05:40:59.000-0600

You didn't tick the code or documentation option.  You need to submit an electronic licence grant then re-submit with that option set, before Digium will look at your patch.

By: Leif Madsen (lmadsen) 2010-01-08 14:39:12.000-0600

I have a feeling this is already fixed. Can you test the 1.4 branch from subversion and re-test?

svn co http://svn.asterisk.org/svn/asterisk/branches/1.4

By: James Terhune (bigjimmy) 2010-01-11 12:10:17.000-0600

It appears that the issue has been resolved in the 1.4 branch.

By: Leif Madsen (lmadsen) 2010-01-11 14:25:42.000-0600

Closed per the reporter. Thanks for the feedback!