[asterisk-bugs] [Asterisk 0014029]: [patch] Asterisk is using wrong clock frequency in text T140

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 14 12:40:52 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14029 
====================================================================== 
Reported By:                epicac
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   14029
Category:                   Core/RTP
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-12-08 07:04 CST
Last Modified:              2009-04-14 12:40 CDT
====================================================================== 
Summary:                    [patch] Asterisk is using wrong clock frequency in
text T140
Description: 
Timestamp in text T140 (RFC 4103) is wrong. Asterisk transmits it with a
clock that runs 90000 ticks per second. In the SDP Asterisk declares that
it uses 1000 ticks per second.

The problem originates from function ast_rtp_raw_write in rtp.c. The clock
frequency for text is set to 90000 instead of 1000.
Probably this lines need to be changed and predictioncode for text needs
to be removed:
"rtp->lastts = rtp->lastts + ms * 90;"

Edit: (inline patch removed by blitzrage)


====================================================================== 

---------------------------------------------------------------------- 
 (0103228) svnbot (reporter) - 2009-04-14 12:40
 http://bugs.digium.com/view.php?id=14029#c103228 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 188413

U   trunk/res/res_rtp_asterisk.c

------------------------------------------------------------------------
r188413 | file | 2009-04-14 12:40:51 -0500 (Tue, 14 Apr 2009) | 5 lines

Fix an incorrect clock rate when sending T140 text.

(closes issue http://bugs.digium.com/view.php?id=14029)
Reported by: epicac

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=188413 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-14 12:40 svnbot         Checkin                                      
2009-04-14 12:40 svnbot         Note Added: 0103228                          
======================================================================




More information about the asterisk-bugs mailing list