aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/osmoappdesc.py
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-01-30 21:01:34 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-31 11:18:25 +0100
commit303b54a2a42bfcd6d2dd509c6e092899e3c6a85b (patch)
tree35ae088f5d075b4b6c636a0f0a210081b817c477 /openbsc/osmoappdesc.py
parente763f3e73eb22ddf72a3ec56fab0309ab4f9a7cc (diff)
mgcp/rtp: Fix transit computation units
Currently micro-secs and RTP rate get mixed when the transit value is computed in mgcp_patch_and_count(). This patch changes get_current_ts() to accept the desired rate as argument and to use it for the time conversion instead of always converting to microseconds. If microseconds are needed, get_current_ts(1000) can be used. The arrival_time is now measured in 1/rtp_end->rate seconds so that it can be directly compared to RTP timestamps as required by RFC3550 (section 6.4.1, see definition of 'interarrival jitter'). Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/osmoappdesc.py')
0 files changed, 0 insertions, 0 deletions