[asterisk-commits] twilson: trunk r288749 - in /trunk: ./ channels/chan_local.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 24 11:11:24 CDT 2010
Author: twilson
Date: Fri Sep 24 11:11:19 2010
New Revision: 288749
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=288749
Log:
Merged revisions 288748 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
................
r288748 | twilson | 2010-09-24 09:02:27 -0700 (Fri, 24 Sep 2010) | 19 lines
Merged revisions 288747 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
................
r288747 | twilson | 2010-09-24 08:37:39 -0700 (Fri, 24 Sep 2010) | 12 lines
Merged revisions 288746 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r288746 | twilson | 2010-09-24 08:26:09 -0700 (Fri, 24 Sep 2010) | 5 lines
Don't fail a masquerade if it is already being hung up
This avoids noise on some Local channel situations where we don't use /n.
Thanks to Alec Davis for the suggestion.
........
................
................
Modified:
trunk/ (props changed)
trunk/channels/chan_local.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: trunk/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_local.c?view=diff&rev=288749&r1=288748&r2=288749
==============================================================================
--- trunk/channels/chan_local.c (original)
+++ trunk/channels/chan_local.c Fri Sep 24 11:11:19 2010
@@ -570,7 +570,7 @@
p->chan = newchan;
/* Do not let a masquerade cause a Local channel to be bridged to itself! */
- if (p->owner->_bridge == p->chan || p->chan->_bridge == p->owner) {
+ if (!ast_check_hangup(newchan) && (p->owner->_bridge == p->chan || p->chan->_bridge == p->owner)) {
ast_log(LOG_WARNING, "You can not bridge a Local channel to itself!\n");
ast_mutex_unlock(&p->lock);
ast_queue_hangup(newchan);
More information about the asterisk-commits
mailing list