main/rtp_engine: Format NTP timestamps as unsigned longs
authorMatthew Jordan <mjordan@digium.com>
Wed, 21 Jan 2015 13:06:06 +0000 (13:06 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 21 Jan 2015 13:06:06 +0000 (13:06 +0000)
commit228fdb3f4e58e37011a884847f7c488365432f11
tree1fa85c1729d98f22dc299382a8c926e2435916ce
parent804ab70f9d99192e34b2f6e74590e24e6490f114
main/rtp_engine: Format NTP timestamps as unsigned longs

When the RTCP reports are created, the NTP timestamps are stored as strings,
as JSON does not have an integer type long enough to store the value. However,
on 32-bit systems, a signed long may overflow for some portion of the
timestamp.

This patch corrects the overflow by formatting the timestamps as unsigned
longs.
........

Merged revisions 430840 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/rtp_engine.c