stupid g722

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5970 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-10-18 16:58:01 +00:00
parent 04a14db824
commit 30167b5bfb
2 changed files with 6 additions and 2 deletions

View 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 = {

View 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);