[asterisk-commits] russell: trunk r87428 - /trunk/apps/app_meetme.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 29 16:34:47 CDT 2007


Author: russell
Date: Mon Oct 29 16:34:47 2007
New Revision: 87428

URL: http://svn.digium.com/view/asterisk?view=rev&rev=87428
Log:
If a caller is listen-only, then don't bother with doing talker detection.
(closes issue #10911, reported by junky, patched by me)

Modified:
    trunk/apps/app_meetme.c

Modified: trunk/apps/app_meetme.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_meetme.c?view=diff&rev=87428&r1=87427&r2=87428
==============================================================================
--- trunk/apps/app_meetme.c (original)
+++ trunk/apps/app_meetme.c Mon Oct 29 16:34:47 2007
@@ -1803,7 +1803,7 @@
 			x = 1;
 			ast_channel_setoption(chan, AST_OPTION_TONE_VERIFY, &x, sizeof(char), 0);
 		}	
-		if (!(dsp = ast_dsp_new())) {
+		if (!(confflags & CONFFLAG_MONITOR) && !(dsp = ast_dsp_new())) {
 			ast_log(LOG_WARNING, "Unable to allocate DSP!\n");
 			res = -1;
 		}
@@ -2060,7 +2060,7 @@
 					if (user->talk.actual)
 						ast_frame_adjust_volume(f, user->talk.actual);
 
-					{
+					if (!(confflags & CONFFLAG_MONITOR)) {
 						int totalsilence;
 
 						if (user->talking == -1)




More information about the asterisk-commits mailing list