aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_rtp_asterisk.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 17:40:50 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 17:40:50 +0000
commit86b8809df4971d9259245cd0ef3bee4e2f68dd23 (patch)
treeda246999616d509440ba203e343b9c537c4fde5d /res/res_rtp_asterisk.c
parent0059bd2e6406090acf1199f8a949d98b1a2c51af (diff)
Fix an incorrect clock rate when sending T140 text.
(closes issue #14029) Reported by: epicac git-svn-id: http://svn.digium.com/svn/asterisk/trunk@188413 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r--res/res_rtp_asterisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 87491e82d..4bd5e8895 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;
}
}