diff options
author | Max <msuraev@sysmocom.de> | 2016-06-13 11:33:43 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-06-14 10:19:13 +0000 |
commit | a10ac248c6b6efe3f1fa1fd85331b32e7941c981 (patch) | |
tree | f32afe75d05b50725fe01429cb73cf94532517c1 /src/common | |
parent | 60970056c87180c88539fcc6e3b0ba72e0f3d674 (diff) |
DTXu: mark beginning of speech burst in RTP
Set Marker bit in RTP header to mark the beginning of talkspurt.
Change-Id: I3dd70ad8ff94356e3c3cc5458255f6c23534783e
Related: OS#1562
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/l1sap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 77fd1a09..163e1293 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -866,8 +866,8 @@ static int l1sap_tch_ind(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap, /* hand msg to RTP code for transmission */ if (lchan->abis_ip.rtp_socket) - osmo_rtp_send_frame(lchan->abis_ip.rtp_socket, - msg->data, msg->len, fn_ms_adj(fn, lchan->tch.last_fn)); + osmo_rtp_send_frame_ext(lchan->abis_ip.rtp_socket, + msg->data, msg->len, fn_ms_adj(fn, lchan->tch.last_fn), lchan->rtp_tx_marker); /* if loopback is enabled, also queue received RTP data */ if (lchan->loopback) { @@ -885,6 +885,8 @@ static int l1sap_tch_ind(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap, msgb_enqueue(&lchan->dl_tch_queue, msg); } + + lchan->rtp_tx_marker = false; lchan->tch.last_fn = fn; return 0; } |