diff --git a/src/mod/codecs/mod_g722/mod_g722.c b/src/mod/codecs/mod_g722/mod_g722.c index bdc6f57569..86ccd1856b 100644 --- a/src/mod/codecs/mod_g722/mod_g722.c +++ b/src/mod/codecs/mod_g722/mod_g722.c @@ -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 = { diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index b8789affe3..a8e116e018 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -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);