]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
not quite, one more tweak
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 30 Nov 2012 20:05:45 +0000 (14:05 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 30 Nov 2012 20:05:45 +0000 (14:05 -0600)
src/switch_rtp.c

index bb04f5bff3cf7a265ba15b1c312b70b8121d2fa1..bceaf5e7437bd4bc7994f82275639d94593dd04d 100644 (file)
@@ -3254,7 +3254,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
                                                }
                                        }
                                        
-                                       if (rtp_session->hot_hits > 10 && !rtp_session->sync_packets) {// >= (rtp_session->samples_per_second * 30)) {
+                                       if (rtp_session->hot_hits > 1 && !rtp_session->sync_packets) {// >= (rtp_session->samples_per_second * 30)) {
                                                hot_socket = 1;
                                        }
                                } else {
@@ -3278,6 +3278,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
                                                                          switch_core_session_get_name(session),
                                                                          rtp_session->sync_packets, (rtp_session->ms_per_packet * rtp_session->sync_packets) / 1000);
                                        switch_core_timer_sync(&rtp_session->timer);
+                                       rtp_session->hot_hits = 0;
                                } else {
 
                                        switch_core_timer_next(&rtp_session->timer);