diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-29 21:34:47 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-29 21:34:47 +0000 |
commit | 0226c6b0a86adfaf32264aa7240b236f819723ea (patch) | |
tree | 0307a0528eefde0377898006aaa14fc1ad667615 /apps | |
parent | 525cd3a0d97a3827abc6dd762309a70444acaacc (diff) |
If a caller is listen-only, then don't bother with doing talker detection.
(closes issue #10911, reported by junky, patched by me)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87428 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_meetme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 0639b6e1b..50b5116ee 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -1803,7 +1803,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c 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 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c if (user->talk.actual) ast_frame_adjust_volume(f, user->talk.actual); - { + if (!(confflags & CONFFLAG_MONITOR)) { int totalsilence; if (user->talking == -1) |