hnodeb: Update primitives to audio SAPI version 1
Audio SAPI version 1 has been added recently in osmo-hnodeb.git
I860d18b80c1041bf63a1570d435e0568c0f6b01b.
Let's update our HNBLLIF emulation to support and use it.
Related: SYS#5516
Change-Id: I9af56f5e6a70b350f2fffa2e04be384d101b52ed
diff --git a/library/HNBLLIF_Templates.ttcn b/library/HNBLLIF_Templates.ttcn
index 6aee659..f56bfc9 100644
--- a/library/HNBLLIF_Templates.ttcn
+++ b/library/HNBLLIF_Templates.ttcn
@@ -275,6 +275,17 @@
return ss;
}
+private function f_rfcis_default() return HNBLLIF_AUDIO_RFCIs
+{
+ var HNBLLIF_AUDIO_RFCIs rfcis;
+
+ for (var integer i := 0; i < HNBLLIF_MAX_RFCIS; i := i + 1) {
+ rfcis[i] := i;
+ }
+
+ return rfcis;
+}
+
template (value) HNBLLIF_Message ts_HNBLLIF_AUDIO_CONN_ESTABLISH_REQ(template (value) uint32_t context_id,
template (value) uint16_t remote_rtp_port,
template (value) HNBLLIF_AddrType remote_rtp_address_type,
@@ -286,7 +297,8 @@
template (value) uint8_t num_subflows := 3,
template (value) HNBLLIF_AUDIO_SubflowSizes subflow_sizes := f_subflow_sizes_default(),
template (value) uint8_t IPTIs_present := 0,
- template (value) HNBLLIF_AUDIO_IPTIs IPTIs := IPTIs_default) := {
+ template (value) HNBLLIF_AUDIO_IPTIs IPTIs := IPTIs_default,
+ template (omit) HNBLLIF_AUDIO_RFCIs rfci := f_rfcis_default()) := {
sapi := HNBLL_IF_SAPI_AUDIO,
u := {
audio := {
@@ -308,7 +320,8 @@
num_subflows := num_subflows,
subflow_sizes := subflow_sizes,
IPTIs_present := IPTIs_present,
- IPTIs := IPTIs
+ IPTIs := IPTIs,
+ rfci := rfci
}
}
}