aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-10-21 19:31:46 +0200
committerMax <msuraev@sysmocom.de>2016-10-21 19:45:00 +0200
commit02ceea8342bd4d722c2ac64550eb40b1060a532b (patch)
tree0efe2f5f7f1231128998ac5d08e19822fa2d5a6a /src
parent7a228ebc604052017f750edd45a3846085b72126 (diff)
Extend RTP RX callback parameters
While debugging low-level RTP issues it is handy to be able to match exact RTP packet with the payload available to higher-level functions. Having Sequence number and Timestamp RTP fields as parameter to receiving callback is the easiest way to do so. Change-Id: I0c9b08d247d7342d6139badca77ce64fda0cf274
Diffstat (limited to 'src')
-rw-r--r--src/trau/osmo_ortp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index e3c6234..e990487 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -161,6 +161,8 @@ int osmo_rtp_socket_poll(struct osmo_rtp_socket *rs)
if (rs->rx_cb)
rs->rx_cb(rs, mblk->b_rptr,
mblk->b_wptr - mblk->b_rptr,
+ rtp_get_seqnumber(mblk),
+ rtp_get_timestamp(mblk),
rtp_get_markbit(mblk));
//rs->rx_user_ts += 160;
freemsg(mblk);
@@ -192,6 +194,8 @@ static int osmo_rtp_fd_cb(struct osmo_fd *fd, unsigned int what)
if (rs->rx_cb)
rs->rx_cb(rs, mblk->b_rptr,
mblk->b_wptr - mblk->b_rptr,
+ rtp_get_seqnumber(mblk),
+ rtp_get_timestamp(mblk),
rtp_get_markbit(mblk));
freemsg(mblk);
} else