From 787591b2164a2a80414c30c7c18a6427efd19dd7 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sat, 16 Feb 2008 20:33:18 +0000 Subject: [PATCH] these rates are for file playing and not voip related git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7646 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/codecs/mod_l16/mod_l16.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mod/codecs/mod_l16/mod_l16.c b/src/mod/codecs/mod_l16/mod_l16.c index afb5a222dd..7fe1387432 100644 --- a/src/mod/codecs/mod_l16/mod_l16.c +++ b/src/mod/codecs/mod_l16/mod_l16.c @@ -109,12 +109,17 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_l16_load) bpf = bpf * 2; ebpf = ebpf * 2; } + /* these formats below are for file playing. */ switch_core_codec_add_implementation(pool, codec_interface, SWITCH_CODEC_TYPE_AUDIO, 118, "L16", NULL, 22050, 22050, 352800, 20000, 441, 882, 882, 1, 1, 1, switch_raw_init, switch_raw_encode, switch_raw_decode, switch_raw_destroy); - + + switch_core_codec_add_implementation(pool, codec_interface, + SWITCH_CODEC_TYPE_AUDIO, 118, "L16", NULL, 11025, 11025, 176400, + 40000, 441, 882, 882, 1, 1, 1, + switch_raw_init, switch_raw_encode, switch_raw_decode, switch_raw_destroy); /* indicate that the module should continue to be loaded */ return SWITCH_STATUS_SUCCESS;