From 4b2b3a673a8c19119810934c9599f41107492c42 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 26 Jan 2018 10:32:39 +0100 Subject: [PATCH] L3_Templates: ts_Bcap_voice(): Include speech version octets Change-Id: Iff48bff6df6fa7dae3bc8467be4d75b0305f68ad --- library/L3_Templates.ttcn | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn index 78365554b..5816ab9ef 100644 --- a/library/L3_Templates.ttcn +++ b/library/L3_Templates.ttcn @@ -435,6 +435,19 @@ template (value) CalledPartyBCD_Number ts_Called(hexstring digits) := { digits := digits } +type integer SpeechVer; + +template (value) Speech_AuxiliarySpeech ts_SpeechAux(SpeechVer ver, BIT1 suffix) := { + speechVersionIndication := int2bit(ver-1,3) & suffix, + spare1_1 := '0'B, + cTM_or_Spare := '0'B, + coding := '0'B, + extension_octet_3a_3b := '0'B +} + +template (value) Speech_AuxiliarySpeech ts_SpeechAuxFR(SpeechVer ver) := ts_SpeechAux(ver, '0'B); +template (value) Speech_AuxiliarySpeech ts_SpeechAuxHR(SpeechVer ver) := ts_SpeechAux(ver, '1'B); + template (value) BearerCapability_TLV ts_Bcap_voice := { elementIdentifier := '04'O, lengthIndicator := 0, /* overwritten */ @@ -444,7 +457,13 @@ template (value) BearerCapability_TLV ts_Bcap_voice := { codingStandard := '0'B, radioChannelRequirement := '11'B, /* FR preferred */ extension_octet_3 := '0'B, /* overwritten */ - speech_aux_3a_3b := omit + speech_aux_3a_3b := { + valueof(ts_SpeechAuxHR(3)), + valueof(ts_SpeechAuxFR(3)), + valueof(ts_SpeechAuxFR(2)), + valueof(ts_SpeechAuxFR(1)), + valueof(ts_SpeechAuxHR(1)) + } }, octet4 := omit, octet5 := omit,