]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-337
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 17 Mar 2009 16:39:12 +0000 (16:39 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 17 Mar 2009 16:39:12 +0000 (16:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12647 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index c575d0ea5670ffbad6e69046374c9a524e9b1200..3d054297a16d9a3e9eb0738e88c874594b2cec9d 100644 (file)
@@ -735,6 +735,14 @@ static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_f
                                                                        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"