]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
stupid g722
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Oct 2007 16:58:01 +0000 (16:58 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Oct 2007 16:58:01 +0000 (16:58 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5970 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_g722/mod_g722.c
src/mod/endpoints/mod_sofia/sofia_glue.c

index bdc6f5756970874282d5dd6151d7632680aa4e90..86ccd1856b92f7c7fbb165c2f72884c85b5f7951 100644 (file)
@@ -135,7 +135,7 @@ static switch_codec_implementation_t g722_8k_implementation = {
        /*.init */ switch_g722_init,
        /*.encode */ switch_g722_encode,
        /*.decode */ switch_g722_decode,
-       /*.destroy */ switch_g722_destroy,
+       /*.destroy */ switch_g722_destroy
 };
 
 static switch_codec_implementation_t g722_16k_implementation = {
index b8789affe32c3bf5aa4c0519b074cced9fb11679..a8e116e0185306522389e8556ee49269281e47a0 100644 (file)
@@ -1307,7 +1307,11 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
                                        if ((tech_pvt->rm_encoding = switch_core_session_strdup(session, (char *) rm_encoding))) {
                                                char tmp[50];
                                                tech_pvt->pt = (switch_payload_t) map->rm_pt;
-                                               tech_pvt->rm_rate = map->rm_rate;
+                                               if (map->rm_pt == 9) {
+                                                       tech_pvt->rm_rate = 16000; /* *stab* *stab* *stab* */
+                                               } else {
+                                                       tech_pvt->rm_rate = map->rm_rate;
+                                               }
                                                tech_pvt->codec_ms = mimp->microseconds_per_frame / 1000;
                                                tech_pvt->remote_sdp_audio_ip = switch_core_session_strdup(session, (char *) connection->c_address);
                                                tech_pvt->rm_fmtp = switch_core_session_strdup(session, (char *) map->rm_fmtp);