[Freeswitch-svn] [commit] r5970 - in freeswitch/trunk/src/mod: codecs/mod_g722 endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Thu Oct 18 12:58:02 EDT 2007
Author: anthm
Date: Thu Oct 18 12:58:01 2007
New Revision: 5970
Modified:
freeswitch/trunk/src/mod/codecs/mod_g722/mod_g722.c
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
Log:
stupid g722
Modified: freeswitch/trunk/src/mod/codecs/mod_g722/mod_g722.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g722/mod_g722.c (original)
+++ freeswitch/trunk/src/mod/codecs/mod_g722/mod_g722.c Thu Oct 18 12:58:01 2007
@@ -135,7 +135,7 @@
/*.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 = {
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Thu Oct 18 12:58:01 2007
@@ -1307,7 +1307,11 @@
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);
More information about the Freeswitch-svn
mailing list