L3_Templates: ts_Bcap_voice(): Include speech version octets

Change-Id: Iff48bff6df6fa7dae3bc8467be4d75b0305f68ad
This commit is contained in:
Harald Welte 2018-01-26 10:32:39 +01:00
parent 166bbb3310
commit 4b2b3a673a
1 changed files with 20 additions and 1 deletions

View File

@ -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,