mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 02:02:01 +00:00
FS-9748 fix commit snafu
This commit is contained in:
parent
ab9be49512
commit
60d8551f2c
@ -237,6 +237,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob
|
|||||||
uint32_t conference_energy = 0;
|
uint32_t conference_energy = 0;
|
||||||
int nomoh = 0;
|
int nomoh = 0;
|
||||||
conference_member_t *floor_holder;
|
conference_member_t *floor_holder;
|
||||||
|
switch_status_t moh_status = SWITCH_STATUS_SUCCESS;
|
||||||
|
|
||||||
/* Sync the conference to a single timing source */
|
/* Sync the conference to a single timing source */
|
||||||
if (switch_core_timer_next(&timer) != SWITCH_STATUS_SUCCESS) {
|
if (switch_core_timer_next(&timer) != SWITCH_STATUS_SUCCESS) {
|
||||||
@ -360,13 +361,21 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob
|
|||||||
conference_member_set_floor_holder(conference, floor_holder);
|
conference_member_set_floor_holder(conference, floor_holder);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (conference->perpetual_sound && !conference->async_fnode) {
|
if (conference->moh_wait > 0) {
|
||||||
conference_file_play(conference, conference->perpetual_sound, CONF_DEFAULT_LEADIN, NULL, 1);
|
conference->moh_wait--;
|
||||||
} else if (conference->moh_sound && ((nomoh == 0 && conference->count == 1)
|
} else {
|
||||||
|| conference_utils_test_flag(conference, CFLAG_WAIT_MOD)) && !conference->async_fnode && !conference->fnode) {
|
if (conference->perpetual_sound && !conference->async_fnode) {
|
||||||
conference_file_play(conference, conference->moh_sound, CONF_DEFAULT_LEADIN, NULL, 1);
|
moh_status = conference_file_play(conference, conference->perpetual_sound, CONF_DEFAULT_LEADIN, NULL, 1);
|
||||||
|
} else if (conference->moh_sound && ((nomoh == 0 && conference->count == 1)
|
||||||
|
|| conference_utils_test_flag(conference, CFLAG_WAIT_MOD)) &&
|
||||||
|
!conference->async_fnode && !conference->fnode) {
|
||||||
|
moh_status = conference_file_play(conference, conference->moh_sound, CONF_DEFAULT_LEADIN, NULL, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!conference->moh_wait && moh_status != SWITCH_STATUS_SUCCESS) {
|
||||||
|
conference->moh_wait = 2000 / conference->interval;
|
||||||
|
}
|
||||||
|
|
||||||
/* Find if no one talked for more than x number of second */
|
/* Find if no one talked for more than x number of second */
|
||||||
if (conference->terminate_on_silence && conference->count > 1) {
|
if (conference->terminate_on_silence && conference->count > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user