1
0
Fork 0

GSMDriver: Reply with an Assignment Complete message...

This commit is contained in:
Holger Hans Peter Freyther 2010-12-05 10:10:02 +01:00
parent 33ca33843e
commit 50b9f6013a
2 changed files with 14 additions and 0 deletions

View File

@ -15,6 +15,8 @@ Object subclass: GSM0808Helper [
GSM0808Helper class >> msgClearComp [ <category: 'spec'> ^ 16r21 ]
GSM0808Helper class >> msgCipherModeCmd [ <category: 'spec'> ^ 16r53 ]
GSM0808Helper class >> msgCipherModeCmpl [ <category: 'spec'> ^ 16r55 ]
GSM0808Helper class >> msgAssRequest [ <category: 'spec'> ^ 16r1 ]
GSM0808Helper class >> msgAssComplete [ <category: 'spec'> ^ 16r2 ]
]
Object subclass: LAI [

View File

@ -85,6 +85,18 @@ classes.'>
^ true
].
aMsg type = GSM0808Helper msgAssRequest ifTrue: [
| resp |
"Reply with a AMR halfrate statement"
resp := IEMessage initWith: GSM0808Helper msgAssComplete.
resp addIe: (GSM0808CauseIE initWith: 0).
resp addIe: (GSM0808ChosenChannel initWith: 16r98).
resp addIe: (GSM0808ChosenEncrIE initWith: 1).
resp addIe: (GSM0808SpeechVerIE initWith: 16r25).
sccp nextPutData: (BSSAPManagement initWith: resp).
^ true
].
'Unhandled message' printNl.
aMsg inspect.
]