rsl: Parse the full l3info with the GSM48MSG code
This commit is contained in:
parent
338d3bd32e
commit
6cb3a2bab5
|
@ -600,6 +600,11 @@ RSLInformationElement subclass: RSLAttributeData [
|
|||
<category: 'conversion'>
|
||||
^ self
|
||||
]
|
||||
|
||||
readStream [
|
||||
<category: 'reading'>
|
||||
^ self data readStream
|
||||
]
|
||||
]
|
||||
|
||||
RSLAttributeData subclass: RSLChannelNumber [
|
||||
|
@ -773,6 +778,11 @@ RSLCommonChannelManagement subclass: RSLImmediateAssignment [
|
|||
<category: 'parsing'>
|
||||
^ RSLMessageDefinitions immediateAssignCommandMessage
|
||||
]
|
||||
|
||||
fullL3Info [
|
||||
<category: 'accessing'>
|
||||
^ full_info
|
||||
]
|
||||
]
|
||||
|
||||
RSLMessageBase subclass: RSLTRXManagement [
|
||||
|
|
|
@ -430,7 +430,12 @@ RoundTripTestCase subclass: RSLRoundTripTest [
|
|||
]
|
||||
|
||||
testImmediateAssignment [
|
||||
| rsl gsm |
|
||||
self roundtripTestFor: #immediateAssignmentData class: RSLImmediateAssignment.
|
||||
|
||||
rsl := RSLMessageBase parse: self immediateAssignmentData readStream.
|
||||
gsm := OsmoGSM.GSM48MSG decode: (rsl fullL3Info readStream skip: 1; yourself).
|
||||
self assert: gsm requestReference ra = 3.
|
||||
]
|
||||
|
||||
testChannelActivation [
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<name>FakeBTS</name>
|
||||
<namespace>FakeBTS</namespace>
|
||||
<prereq>OsmoNetwork</prereq>
|
||||
<prereq>OsmoGSM</prereq>
|
||||
|
||||
<filein>OMLMsg.st</filein>
|
||||
<filein>IPAOMLMsg.st</filein>
|
||||
|
|
Reference in New Issue