[Freeswitch-svn] [commit] r10377 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN brian at freeswitch.org
Thu Nov 13 10:06:40 PST 2008


Author: brian
Date: Thu Nov 13 13:06:40 2008
New Revision: 10377

Log:
if we happen to change codecs during a hold/unhold update the samples per packet in the process just in case we change rates.

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c

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 Nov 13 13:06:40 2008
@@ -1564,6 +1564,10 @@
 		return SWITCH_STATUS_FALSE;
 	}
 
+	if (switch_rtp_ready(tech_pvt->rtp_session)) {
+		switch_rtp_set_default_samples_per_interval(tech_pvt->rtp_session, tech_pvt->read_codec.implementation->samples_per_packet);
+	}
+
 	tech_pvt->read_frame.rate = tech_pvt->rm_rate;
 	ms = tech_pvt->write_codec.implementation->microseconds_per_packet / 1000;
 



More information about the Freeswitch-svn mailing list