From: Anthony Minessale Date: Wed, 21 Aug 2013 21:28:39 +0000 (+0500) Subject: FS-5296 X-Git-Tag: v1.5.5~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e7822225f2da4bd43526db0ea54ae76af30846a;p=thirdparty%2Ffreeswitch.git FS-5296 --- diff --git a/libs/stfu/stfu.c b/libs/stfu/stfu.c index 5ab14a31d6..8f09145e71 100644 --- a/libs/stfu/stfu.c +++ b/libs/stfu/stfu.c @@ -447,6 +447,10 @@ stfu_status_t stfu_n_add_data(stfu_instance_t *i, uint32_t ts, uint16_t seq, uin if (i->max_drift) { + if (i->drift_dropped_packets > 500) { + stfu_n_reset(i); + } + if (i->ts_drift < i->max_drift) { if (++i->drift_dropped_packets < i->drift_max_dropped) { stfu_log(STFU_LOG_EMERG, "%s TOO LATE !!! %u \n\n\n", i->name, ts);