[asterisk-commits] rmudgett: branch 12 r414272 - in /branches/12: ./ main/core_unreal.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 21 17:17:41 CDT 2014


Author: rmudgett
Date: Wed May 21 17:17:37 2014
New Revision: 414272

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=414272
Log:
core_unreal: Only block media frames when a generator is on both ends of an unreal channel.

The fix for ASTERISK-12292 was a bit too aggressive.  You could have
generators pointed at each other on local channels but need to get other
kinds of frames such as DTMF or CONNECTED_LINE frames accross.
........

Merged revisions 414269 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 414270 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    branches/12/   (props changed)
    branches/12/main/core_unreal.c

Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/12/main/core_unreal.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/core_unreal.c?view=diff&rev=414272&r1=414271&r2=414272
==============================================================================
--- branches/12/main/core_unreal.c (original)
+++ branches/12/main/core_unreal.c Wed May 21 17:17:37 2014
@@ -211,8 +211,11 @@
 		return 0;
 	}
 
-	/* do not queue frame if generator is on both unreal channels */
-	if (us && ast_channel_generator(us) && ast_channel_generator(other)) {
+	/* do not queue media frames if a generator is on both unreal channels */
+	if (us
+		&& (f->frametype == AST_FRAME_VOICE || f->frametype == AST_FRAME_VIDEO)
+		&& ast_channel_generator(us)
+		&& ast_channel_generator(other)) {
 		return 0;
 	}
 




More information about the asterisk-commits mailing list