From: Joshua Colp Date: Tue, 14 Apr 2009 17:40:50 +0000 (+0000) Subject: Fix an incorrect clock rate when sending T140 text. X-Git-Tag: 11.0.0-beta1~5051 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=973b36a3c738ec70a3f09d41480639707e8420be;p=thirdparty%2Fasterisk.git Fix an incorrect clock rate when sending T140 text. (closes issue #14029) Reported by: epicac git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188413 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 87491e82d7..4bd5e88950 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -975,14 +975,14 @@ static int ast_rtp_raw_write(struct ast_rtp_instance *instance, struct ast_frame } else { pred = rtp->lastotexttimestamp + frame->samples; /* Re-calculate last TS */ - rtp->lastts = rtp->lastts + ms * 90; + rtp->lastts = rtp->lastts + ms; /* If it's close to our prediction, go for it */ if (ast_tvzero(frame->delivery)) { if (abs(rtp->lastts - pred) < 7200) { rtp->lastts = pred; rtp->lastotexttimestamp += frame->samples; } else { - ast_debug(3, "Difference is %d, ms is %d (%d), pred/ts/samples %d/%d/%d\n", abs(rtp->lastts - pred), ms, ms * 90, rtp->lastts, pred, frame->samples); + ast_debug(3, "Difference is %d, ms is %d, pred/ts/samples %d/%d/%d\n", abs(rtp->lastts - pred), ms, rtp->lastts, pred, frame->samples); rtp->lastotexttimestamp = rtp->lastts; } }