aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/msg_utils.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-09-17 14:15:03 +0200
committerMax <msuraev@sysmocom.de>2016-09-24 15:09:31 +0200
commit654175f33bd412671e3ef8cdd65c0689d10f278c (patch)
tree9861adb1bf44de4ff5edf02025e7fc7795f33218 /include/osmo-bts/msg_utils.h
parenteb08a87be52bf55a78c12689f1e5c7cff627cbbc (diff)
DTX: check Marker bit to send ONSET to L1
If Marker bit is set than it's a talkspurt which we have to explicitly indicate to L1 by first sending ONSET message and than actual voice data in a separate message. This change affect sysmobts and LC15 hw. Change-Id: I88c41568bcb0d82699f617adc4ad192603dd1bb6 Related: OS#1750
Diffstat (limited to 'include/osmo-bts/msg_utils.h')
-rw-r--r--include/osmo-bts/msg_utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmo-bts/msg_utils.h b/include/osmo-bts/msg_utils.h
index cde7a93b..f03eb438 100644
--- a/include/osmo-bts/msg_utils.h
+++ b/include/osmo-bts/msg_utils.h
@@ -10,6 +10,9 @@
struct msgb;
+/* Access 1st byte of msgb control buffer */
+#define rtpmsg_marker_bit(x) ((x)->cb[0])
+
/**
* Classification of OML message. ETSI for plain GSM 12.21
* messages and IPA/Osmo for manufacturer messages.