1
0
Fork 0

rsl: Begin to dissect the rsl immediate assignment

This commit is contained in:
Holger Hans Peter Freyther 2012-08-24 19:27:40 +02:00
parent 6cb3a2bab5
commit bdf762c0dd
2 changed files with 20 additions and 1 deletions

View File

@ -19,6 +19,8 @@
"This is a fake base station used for injecting RSL/DTAP messages and
simulating failure condition..."
PackageLoader fileInPackage: #OsmoGSM.
RSLBCCHInformation extend [
btsDispatchOn: aBTS [
<category: '*-BTS-Core'>
@ -99,8 +101,20 @@ RSLRFChannelRelease extend [
ifTrue: [self btsFreeChan: aBTS lchan: lchan]
ifFalse: [self btsErrorChan: aBTS lchan: lchan].
]
]
RSLImmediateAssignment extend [
btsDispatchOn: aBTS [
| gsm |
<category: '*-BTS-Core'>
self channelNumber isPchAgch
ifFalse: [^self error: 'Can only handle assignment on PCH/AGCH'].
"Skip the L2 Pseudo length"
gsm := OsmoGSM.GSM48MSG decode:
(self fullL3Info readStream skip: 1; yourself).
gsm requestReference ra printNl.
]
]
Object subclass: BTS [

View File

@ -719,6 +719,11 @@ RSLMessageBase subclass: RSLCommonChannelManagement [
<category: 'creation'>
channel_number := aNumber
]
channelNumber [
<category: 'accessing'>
^ channel_number
]
]
RSLCommonChannelManagement subclass: RSLChannelRequired [