]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
sleep 2 seconds on confernece outcall at the end to prevent auto-answer race
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Feb 2011 18:17:33 +0000 (12:17 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Feb 2011 18:17:47 +0000 (12:17 -0600)
src/mod/applications/mod_conference/mod_conference.c

index 71ed1ed4b7db689dfbd62deb04c61e94f7620525..35412afb17aee23da68aff415dfbe83f1486b8cf 100644 (file)
@@ -1396,6 +1396,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
 
        if (switch_test_flag(conference, CFLAG_OUTCALL)) {
                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);
                while(conference->originating) {
                        switch_yield(200000);