wait for channels to come up in paging mode
This commit is contained in:
parent
3253bcb363
commit
b8063c3d34
|
@ -2559,10 +2559,6 @@ static void conference_loop_output(conference_member_t *member)
|
||||||
|
|
||||||
write_frame.codec = &member->write_codec;
|
write_frame.codec = &member->write_codec;
|
||||||
|
|
||||||
if (!switch_test_flag(member->conference, CFLAG_ANSWERED)) {
|
|
||||||
switch_channel_answer(channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!restarting) {
|
if (!restarting) {
|
||||||
/* Start the input thread */
|
/* Start the input thread */
|
||||||
launch_conference_loop_input(member, switch_core_session_get_pool(member->session));
|
launch_conference_loop_input(member, switch_core_session_get_pool(member->session));
|
||||||
|
@ -2609,7 +2605,21 @@ static void conference_loop_output(conference_member_t *member)
|
||||||
}
|
}
|
||||||
switch_safe_free(cpstr);
|
switch_safe_free(cpstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do {
|
||||||
|
switch_ivr_play_file(member->session, NULL, "tone_stream://%(500,0,640)", NULL);
|
||||||
|
} while(switch_channel_up(channel) && member->conference->originating);
|
||||||
|
|
||||||
|
if (!switch_channel_ready(channel)) {
|
||||||
|
member->conference->cancel_cause = SWITCH_CAUSE_ORIGINATOR_CANCEL;
|
||||||
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!switch_test_flag(member->conference, CFLAG_ANSWERED)) {
|
||||||
|
switch_channel_answer(channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (restarting) {
|
if (restarting) {
|
||||||
|
@ -2790,6 +2800,7 @@ static void conference_loop_output(conference_member_t *member)
|
||||||
|
|
||||||
} /* Rinse ... Repeat */
|
} /* Rinse ... Repeat */
|
||||||
|
|
||||||
|
end:
|
||||||
|
|
||||||
switch_clear_flag_locked(member, MFLAG_RUNNING);
|
switch_clear_flag_locked(member, MFLAG_RUNNING);
|
||||||
switch_core_timer_destroy(&timer);
|
switch_core_timer_destroy(&timer);
|
||||||
|
|
Loading…
Reference in New Issue