From: Anthony Minessale Date: Wed, 10 Sep 2014 18:09:32 +0000 (-0400) Subject: FS-6815 #comment force 1600hz for native g722 X-Git-Tag: v1.4.8~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=908dd26559852ab91d96f2291b136c29f6110ead;p=thirdparty%2Ffreeswitch.git FS-6815 #comment force 1600hz for native g722 --- 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;