1
0
Fork 0

imsi detach: Implement the IMSI detach procedure

This commit is contained in:
Holger Hans Peter Freyther 2012-10-21 15:53:12 +02:00
parent 27b2de5c76
commit 150dfba9c0
2 changed files with 34 additions and 0 deletions

View File

@ -252,6 +252,29 @@ Object subclass: ProcedureBase [
]
]
ProcedureBase subclass: IMSIDetachProcedure [
initialMessage [
| detach |
detach := GSM48IMSIDetachInd new.
detach mi imsi: conn phone imsi.
^ detach
]
name [
^ 'IMSI Detach Procedure'
]
status [
^ self success
ifTrue: ['IMSI Detach succeeded']
ifFalse: ['IMSI Detach failed'].
]
connectionConfirmed [
"Nothing. No classmark change needed here."
]
]
ProcedureBase subclass: LUProcedure [
initialMessage [

View File

@ -135,6 +135,17 @@ Object subclass: IPAConfig [
semaphore [ ^ sem ]
doIMSIDetach: aPhone [
^ (GSMConnection on: connection sccpHandler withPhone: aPhone)
setProc: IMSIDetachProcedure new;
yourself
]
sendIMSIDetach: aPhone [
^ (self doIMSIDetach: aPhone)
openConnection; waitForTermination; yourself
]
doLU: aPhone [
^ (GSMConnection on: connection sccpHandler withPhone: aPhone)
setProc: LUProcedure new;