From 908dd26559852ab91d96f2291b136c29f6110ead Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 10 Sep 2014 14:09:32 -0400 Subject: [PATCH] FS-6815 #comment force 1600hz for native g722 --- src/mod/formats/mod_native_file/mod_native_file.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mod/formats/mod_native_file/mod_native_file.c b/src/mod/formats/mod_native_file/mod_native_file.c index b875e82c22..d2db2b1b52 100644 --- a/src/mod/formats/mod_native_file/mod_native_file.c +++ b/src/mod/formats/mod_native_file/mod_native_file.c @@ -83,6 +83,13 @@ static switch_status_t native_file_file_open(switch_file_handle_t *handle, const handle->samples = 0; handle->samplerate = 8000; + + if (ext) { + if (!strcasecmp(ext, "G722")) { + handle->samplerate = 16000; + } + } + handle->channels = 1; handle->format = 0; handle->sections = 0;