[Asterisk-code-review] res rtp multicast: Use consistent timestamps when possible (asterisk[13])

Sean Bright asteriskteam at digium.com
Tue Jun 6 10:54:15 CDT 2017


Sean Bright has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/5762 )

Change subject: res_rtp_multicast: Use consistent timestamps when possible
......................................................................

res_rtp_multicast: Use consistent timestamps when possible

When a frame destined for a MulticastRTP channel does not have timing
information (such as when an 'originate' is done), we generate the RTP
timestamps ourselves without regard to the number of samples we are
about to send.

Instead, use the same method as res_rtp_asterisk and 'predict' a
timestamp given the number of samples. If the difference between the
timestamp that we generate and the one we predict is within a specific
threshold, use the predicted timestamp so that we end up with timestamps
that are consistent with the number of samples we are actually sending.

Change-Id: I2bf0db3541b1573043330421cbb114ff0f22ec1f
---
M res/res_rtp_multicast.c
1 file changed, 27 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/62/5762/2
-- 
To view, visit https://gerrit.asterisk.org/5762
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2bf0db3541b1573043330421cbb114ff0f22ec1f
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>



More information about the asterisk-code-review mailing list