From: Anthony Minessale Date: Fri, 30 Jul 2010 04:39:29 +0000 (-0500) Subject: answer in conf X-Git-Tag: v1.2-rc1~526^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3604bd05ba96e6e089811c10ecc0508ce853f26f;p=thirdparty%2Ffreeswitch.git answer in conf --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 53c4b85e1f..9f22d325c1 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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");