mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 06:18:35 +00:00
sleep 2 seconds on confernece outcall at the end to prevent auto-answer race
This commit is contained in:
1 parent
62d000ed20
commit
69d1d984fe
1 file changed
+1
@@ -1396,6 +1396,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
|
|||||||
|
|
||||||
if (switch_test_flag(conference, CFLAG_OUTCALL)) {
|
if (switch_test_flag(conference, CFLAG_OUTCALL)) {
|
||||||
conference->cancel_cause = SWITCH_CAUSE_ORIGINATOR_CANCEL;
|
conference->cancel_cause = SWITCH_CAUSE_ORIGINATOR_CANCEL;
|
||||||
|
switch_yield(2000000);
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Ending pending outcall channels for Conference: '%s'\n", conference->name);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Ending pending outcall channels for Conference: '%s'\n", conference->name);
|
||||||
while(conference->originating) {
|
while(conference->originating) {
|
||||||
switch_yield(200000);
|
switch_yield(200000);
|
||||||
|
|||||||
Reference in new issue
Block a user