[asterisk-commits] rmudgett: trunk r369329 - in /trunk: ./ main/features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 25 11:07:05 CDT 2012
Author: rmudgett
Date: Mon Jun 25 11:07:02 2012
New Revision: 369329
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369329
Log:
Fix Bridge application occasionally returning to the wrong location.
* Fix do_bridge_masquerade() getting the resume location from the zombie
channel. The code must not touch a clone channel after it has masqueraded
it. The clone channel has become a zombie and is starting to hangup.
(closes issue ASTERISK-19985)
Reported by: jamicque
Patches:
jira_asterisk_19985_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: jamicque
........
Merged revisions 369327 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 369328 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/main/features.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=369329&r1=369328&r2=369329
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Mon Jun 25 11:07:02 2012
@@ -7138,8 +7138,15 @@
*/
static int do_bridge_masquerade(struct ast_channel *chan, struct ast_channel *tmpchan)
{
+ const char *context;
+ const char *exten;
+ int priority;
+
ast_moh_stop(chan);
ast_channel_lock_both(chan, tmpchan);
+ context = ast_strdupa(ast_channel_context(chan));
+ exten = ast_strdupa(ast_channel_exten(chan));
+ priority = ast_channel_priority(chan);
ast_setstate(tmpchan, ast_channel_state(chan));
ast_format_copy(ast_channel_readformat(tmpchan), ast_channel_readformat(chan));
ast_format_copy(ast_channel_writeformat(tmpchan), ast_channel_writeformat(chan));
@@ -7153,7 +7160,7 @@
ast_do_masquerade(tmpchan);
/* when returning from bridge, the channel will continue at the next priority */
- ast_explicit_goto(tmpchan, ast_channel_context(chan), ast_channel_exten(chan), ast_channel_priority(chan) + 1);
+ ast_explicit_goto(tmpchan, context, exten, priority + 1);
return 0;
}
More information about the asterisk-commits
mailing list