diff --git a/GSM48.st b/GSM48.st index ad5127d..c80b80f 100644 --- a/GSM48.st +++ b/GSM48.st @@ -486,6 +486,15 @@ GSM48SimpleTag subclass: GSM48CipherModeSetting [ ] +GSM48SimpleData subclass: GSM48CipherModeSettingResponse [ + + + + +] + GSM48SimpleData subclass: GSM48FrequencyChannelSequence [ @@ -2983,6 +2992,22 @@ GSM48RRMessage subclass: GSM48RRChannelRelease [ ] ] +GSM48RRMessage subclass: GSM48RRCipheringModeCommand [ + + + + GSM48RRCipheringModeCommand class >> messageType [ + + ^self msgCipherModeCommand + ] + + GSM48RRCipheringModeCommand class >> tlvDescription [ + ^OrderedCollection new + add: GSM48CipherModeSettingResponse asTLVDescription; + yourself + ] +] + GSM48RRMessage subclass: GSM48RRClassmarkChange [ @@ -3128,6 +3153,7 @@ Eval [ GSM48RRHandoverFailure initialize. GSM48RRImmediateAssignCommand initialize. GSM48RRChannelRelease initialize. + GSM48RRCipheringModeCommand initialize. GSM48RRClassmarkChange initialize. GSM48RRPagingResponse initialize. GSM48RRChannelModeModify initialize. diff --git a/Tests.st b/Tests.st index ecf8504..6269c3a 100644 --- a/Tests.st +++ b/Tests.st @@ -433,6 +433,13 @@ TestCase subclass: GSM48Test [ self assert: dec channelDescription2 timeSlot = 3. self assert: dec channelDescription2 arfcn = 809. ] + + testCipheringModeCommand [ + | dec inp | + inp := #(16r06 16r35 16r11) asByteArray. + dec := GSM48MSG decode: inp readStream. + self assert: dec toMessage asByteArray = inp. + ] ] SCCPHandler subclass: TestSCCPHandler [