pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29277 )
Change subject: library/AMR: Add API to generate encoded RTP AMR headers
......................................................................
library/AMR: Add API to generate encoded RTP AMR headers
Change-Id: I40cd999badeeefa38a393af9008d8ce047e3c778
---
M library/AMR_Types.ttcn
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/77/29277/1
diff --git a/library/AMR_Types.ttcn b/library/AMR_Types.ttcn
index 3ef2fbc..e78d5ff 100644
--- a/library/AMR_Types.ttcn
+++ b/library/AMR_Types.ttcn
@@ -35,4 +35,13 @@
return c_AMRFT_len[amr_ft];
}
+function f_enc_rtp_amr_hdr(integer amr_cmr, integer amr_ft, BIT1 q := '1'B)
return OCT2 {
+ var OCT2 hdr := bit2oct(int2bit(amr_cmr, 4) & /* CMR */
+ '00000'B & /* padding */
+ int2bit(amr_ft, 4) & /* FT */
+ q & /* Q */
+ '00'B); /* padding */
+ return hdr;
+}
+
} with { encode "RAW"}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29277
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I40cd999badeeefa38a393af9008d8ce047e3c778
Gerrit-Change-Number: 29277
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange