- /* If it's close to our prediction, go for it */
- if (abs(rtp->lastts - pred) < 640)
- rtp->lastts = pred;
- else
- ast_log(LOG_DEBUG, "Difference is %d, ms is %d\n", abs(rtp->lastts - pred), ms);
+ if (!f->delivery.tv_sec && f->delivery.tv_usec) {
+ /* If this isn't an absolute delivery time, Check if it is close to our prediction,
+ and if so, go with our prediction */
+ if (abs(rtp->lastts - pred) < 640)
+ rtp->lastts = pred;
+ else
+ ast_log(LOG_DEBUG, "Difference is %d, ms is %d\n", abs(rtp->lastts - pred), ms);
+ }