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

FreeSWITCH SVN anthm at freeswitch.org
Tue Mar 17 09:39:12 PDT 2009


Author: anthm
Date: Tue Mar 17 11:39:12 2009
New Revision: 12647

Log:
FSCORE-337

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Tue Mar 17 11:39:12 2009
@@ -735,6 +735,14 @@
 									int rtp_timeout_sec = 0;
 									int rtp_hold_timeout_sec = 0;
 								
+									if (codec_ms > 120) { /* yeah right */
+										switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, 
+														  "Your phone is trying to send timestamps that suggest an increment of %dms per packet\n"
+														  "That seems hard to believe so I am going to go on ahead and um ignore that, mmkay?", (int)codec_ms);
+										tech_pvt->check_frames = MAX_CODEC_CHECK_FRAMES;
+										goto skip;
+									}
+
 									tech_pvt->read_frame.datalen = 0;
 									switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, 
 													  "We were told to use ptime %d but what they meant to say was %d\n"



More information about the Freeswitch-svn mailing list