From: Anthony Minessale Date: Mon, 20 May 2013 16:22:37 +0000 (-0500) Subject: getting read_impl too soon here X-Git-Tag: v1.2.13~361 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a0ec141302f877742b42a17e78ab0b5ce1a1b67;p=thirdparty%2Ffreeswitch.git getting read_impl too soon here --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 2d43863826..054a68e59b 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1877,8 +1877,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t hangup_on_error = switch_true(p); } - switch_core_session_get_read_impl(session, &read_impl); - if ((status = switch_channel_pre_answer(channel)) != SWITCH_STATUS_SUCCESS) { return SWITCH_STATUS_FALSE; } @@ -1888,6 +1886,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t return SWITCH_STATUS_FALSE; } + switch_core_session_get_read_impl(session, &read_impl); channels = read_impl.number_of_channels; if ((bug = switch_channel_get_private(channel, file))) {