From: Mike Jerris Date: Wed, 11 Feb 2015 16:58:51 +0000 (-0600) Subject: FS-7262: #resolve #comment fix regression in native recording using record thread... X-Git-Tag: v1.4.18~1^2~21^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5afdffb6614af505324904bcce3db42671aedbe5;p=thirdparty%2Ffreeswitch.git FS-7262: #resolve #comment fix regression in native recording using record thread from FS-7083 326289c --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 60de27c73e..0b58c11433 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1183,7 +1183,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s { const char *var = switch_channel_get_variable(channel, "RECORD_USE_THREAD"); - if (zstr(var) || switch_true(var)) { + if (!rh->native && rh->fh && (zstr(var) || switch_true(var))) { switch_threadattr_t *thd_attr = NULL; switch_memory_pool_t *pool = switch_core_session_get_pool(session); int sanity = 200;