From 87d4a6a0c8efcd1104875a972573cb489d179bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunyadv=C3=A1ri=20P=C3=A9ter?= Date: Wed, 6 Dec 2017 12:51:10 +0100 Subject: [PATCH] FS-10826 [core] Fix file handler sample rate after transfer --- src/switch_ivr_async.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 866601b356..a4e41c9e97 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1229,6 +1229,8 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s rh->completion_cause = NULL; switch_core_session_get_read_impl(session, &rh->read_impl); + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Record session sample rate: %d -> %d\n", rh->fh->native_rate, rh->read_impl.actual_samples_per_second); + rh->fh->native_rate = rh->read_impl.actual_samples_per_second; if (rh->fh && switch_core_file_has_video(rh->fh, SWITCH_TRUE)) { switch_core_media_bug_set_media_params(bug, &rh->fh->mm);