[asterisk-commits] jpeeler: trunk r142929 - in /trunk: ./ channels/chan_local.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 12 17:24:14 CDT 2008


Author: jpeeler
Date: Fri Sep 12 17:24:13 2008
New Revision: 142929

URL: http://svn.digium.com/view/asterisk?view=rev&rev=142929
Log:
Merged revisions 142927 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r142927 | jpeeler | 2008-09-12 17:22:28 -0500 (Fri, 12 Sep 2008) | 6 lines

(closes issue #12965)
Reported by: rlsutton2

Prevents local channels from playing MOH at each other which was causing ast_generic_bridge to loop much faster.


........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_local.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_local.c?view=diff&rev=142929&r1=142928&r2=142929
==============================================================================
--- trunk/channels/chan_local.c (original)
+++ trunk/channels/chan_local.c Fri Sep 12 17:24:13 2008
@@ -202,6 +202,10 @@
 
 	/* Recalculate outbound channel */
 	other = isoutbound ? p->owner : p->chan;
+
+	/* do not queue frame if generator is on both local channels */
+	if (us && us->generator && other->generator)
+		return 0;
 
 	/* Set glare detection */
 	ast_set_flag(p, LOCAL_GLARE_DETECT);




More information about the asterisk-commits mailing list