]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorBrian West <brian@freeswitch.org>
Fri, 1 Feb 2008 15:06:22 +0000 (15:06 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 1 Feb 2008 15:06:22 +0000 (15:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7457 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_g722/mod_g722.c

index 08f68054e30e9bfe3e9f529c3602055a2a0a9b1e..aed95034f7283d546714693b103017135a10f751 100644 (file)
@@ -131,6 +131,12 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_g722_load)
                                              mpf * count, spf * count, bpf * count, ebpf * count, 1, 1, 12,
                                              switch_g722_init, switch_g722_encode, switch_g722_decode, switch_g722_destroy);
     }
+    for (count = 12; count > 0; count--) {
+        switch_core_codec_add_implementation(pool, codec_interface,
+                                             SWITCH_CODEC_TYPE_AUDIO, 109, "G722_8", NULL, 8000, 8000, 64000,
+                                             mpf * count, spf * count, bpf * count, ebpf * count, 1, 1, 12,
+                                             switch_g722_init, switch_g722_encode, switch_g722_decode, switch_g722_destroy);
+    }
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;