aboutsummaryrefslogtreecommitdiffstats
path: root/BSSMAP.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-30 09:22:09 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-05 10:02:08 +0100
commitebd0c2db733850836e1db5e34c270b49878b941b (patch)
treeab89bd2cad3b7b1fd62a28786b0554f9b39375c5 /BSSMAP.st
parent4ebe933b5bf6e08b38f8fc525817e719ee6adff3 (diff)
BSSMAP: Be able to dissect a assignment complete
Diffstat (limited to 'BSSMAP.st')
-rw-r--r--BSSMAP.st50
1 files changed, 50 insertions, 0 deletions
diff --git a/BSSMAP.st b/BSSMAP.st
index a4ab7b4..3b69b18 100644
--- a/BSSMAP.st
+++ b/BSSMAP.st
@@ -511,3 +511,53 @@ GSM0808IE subclass: GSM0808CICIE [
aMsg putByteArray: cic.
]
]
+
+GSM0808IE subclass: GSM0808CauseIE [
+ | cause |
+
+ GSM0808CauseIE class >> elementId [ ^ 21 ]
+ GSM0808CauseIE class >> length: aByteArray [ ^ 1 ]
+ GSM0808CauseIE class >> initWith: aCause [
+ ^ self new
+ cause: aCause;
+ yourself
+ ]
+
+ GSM0808CauseIE class >> parseFrom: aByteArray [
+ ^ self initWith: (aByteArray at: 2)
+ ]
+
+ cause [ ^ cause ]
+ cause: aCause [ cause := aCause ]
+
+ writeOnDirect: aMsg [
+ aMsg putByte: cause.
+ ]
+]
+
+GSM0808IE subclass: GSM0808SpeechVerIE [
+ | speech |
+
+ GSM0808SpeechVerIE class >> elementId [ ^ 64 ]
+ GSM0808SpeechVerIE class >> length: aByteArray [ ^ 1 ]
+ GSM0808SpeechVerIE class >> initWith: aVersion [
+ ^ self new
+ speechVersion: aVersion;
+ yourself
+ ]
+
+ GSM0808SpeechVerIE class >> parseFrom: aByteArray [
+ ^ self initWith: (aByteArray at: 2)
+ ]
+
+ speechVersion: aVersion [
+ speech := aVersion
+ ]
+
+ speechVersion [ ^ speech ]
+
+
+ writeOnDirect: aMsg [
+ aMsg putByte: speech.
+ ]
+]