]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9441 optional skip member outcall beep
authorLuis Azedo <luis.azedo@factorlusitano.com>
Thu, 18 Aug 2016 16:04:08 +0000 (11:04 -0500)
committerLuis Azedo <luis.azedo@factorlusitano.com>
Thu, 18 Aug 2016 16:04:08 +0000 (11:04 -0500)
src/mod/applications/mod_conference/conference_loop.c

index a25c4319b035310912341d2d3060df53c71f7aa3..67592c874a3df51f3177e313b8141de31687d4b3 100644 (file)
@@ -1122,6 +1122,7 @@ void conference_loop_output(conference_member_t *member)
                const char *prefix = switch_channel_get_variable(channel, "conference_auto_outcall_prefix");
                const char *maxwait = switch_channel_get_variable(channel, "conference_auto_outcall_maxwait");
                const char *delimiter_val = switch_channel_get_variable(channel, "conference_auto_outcall_delimiter");
+               const char *skip_member_beep = switch_channel_get_variable(channel, "conference_auto_outcall_skip_member_beep");
                int to = 60;
                int wait_sec = 2;
                int loops = 0;
@@ -1185,7 +1186,8 @@ void conference_loop_output(conference_member_t *member)
                        goto end;
                }
 
-               conference_member_play_file(member, "tone_stream://%(500,0,640)", 0, SWITCH_TRUE);
+               if (!skip_member_beep || !switch_true(skip_member_beep))
+                       conference_member_play_file(member, "tone_stream://%(500,0,640)", 0, SWITCH_TRUE);
        }
 
        if (!conference_utils_test_flag(member->conference, CFLAG_ANSWERED)) {