]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
answer in conf
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 30 Jul 2010 04:39:29 +0000 (23:39 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 30 Jul 2010 04:39:29 +0000 (23:39 -0500)
src/mod/applications/mod_conference/mod_conference.c

index 53c4b85e1fff0a95ac4bc1c60c7eac614d7835d2..9f22d325c14fb2ca1a5864c76fa9e8bdbd9fd525 100644 (file)
@@ -5337,6 +5337,13 @@ SWITCH_STANDARD_APP(conference_function)
        switch_event_t *params = NULL;
        int locked = 0;
 
+
+
+       if (switch_channel_answer(channel) != SWITCH_STATUS_SUCCESS) {
+               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Channel answer failed.\n");
+        return;
+       }
+
        /* Save the original read codec. */
        if (!(read_codec = switch_core_session_get_read_codec(session))) {
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Channel has no media!\n");