This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/5847 MNCC: Add some useful templates / helper functions Change-Id: I59374f9f17600bd405b52dd3a0bcdb39b9ac9adc --- M library/MNCC_CodecPort.ttcn M library/MNCC_Types.ttcn 2 files changed, 27 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/47/5847/1 diff --git a/library/MNCC_CodecPort.ttcn b/library/MNCC_CodecPort.ttcn index ce62e39..14dc90b 100644 --- a/library/MNCC_CodecPort.ttcn +++ b/library/MNCC_CodecPort.ttcn @@ -46,5 +46,19 @@ }; +template MNCC_send_data t_SD_MNCC(integer id, template MNCC_PDU pdu) := { + data := pdu, + id := id +} + +template MNCC_send_data t_SD_MNCC_MSGT(integer id, template MNCC_MsgType msg_type) := { + data := { + msg_type := msg_type, + u := ? + }, + id := id +} + + } diff --git a/library/MNCC_Types.ttcn b/library/MNCC_Types.ttcn index 2c08e27..62fe3a0 100644 --- a/library/MNCC_Types.ttcn +++ b/library/MNCC_Types.ttcn @@ -1434,4 +1434,17 @@ /* MSC <- MNCC: RTP_FREE.req; request connect of RTP */ template MNCC_PDU ts_MNCC_RTP_FREE(uint32_t call_id) := ts_MNCC_SIMPLE_RTP(MNCC_RTP_FREE, call_id); +function f_mncc_get_call_id(MNCC_PDU pdu) return uint32_t { + if (ischosen(pdu.u.rtp)) { + return pdu.u.rtp.callref; + } else if (ischosen(pdu.u.data)) { + return pdu.u.data.callref; + } else if (ischosen(pdu.u.signal)) { + return pdu.u.signal.callref; + } else { + setverdict(fail, "Unable to determine Callref for MNCC", pdu); + self.stop + } +} + } with { encode "RAW" ; variant "FIELDORDER(msb)" } -- To view, visit https://gerrit.osmocom.org/5847 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I59374f9f17600bd405b52dd3a0bcdb39b9ac9adc Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org>