smalltalk
/
osmo-st-gsm
Archived
1
0
Fork 0

gsm: Add DST IE to the MM Information message

This commit is contained in:
Holger Hans Peter Freyther 2013-09-13 11:06:28 +02:00
parent 9b0a1c23d0
commit 7b76b7bf06
2 changed files with 18 additions and 0 deletions

View File

@ -2014,6 +2014,14 @@ GSM48DataHolder subclass: GSM48LSAIdentifier [
<gsmName: 'lsaIdentity'>
]
GSM48DataHolder subclass: GSM48DaylightSavingTime [
<category: 'OsmoGSM'>
<comment: '10.5.3.12'>
<gsmElementId: 16r49>
<gsmMinValueSize: 1 max: 1>
<gsmName: 'dst'>
]
Osmo.TLVParserBase subclass: GSM48MSG [
| seq ti |
@ -2567,6 +2575,7 @@ GSM48MMMessage subclass: GSM48MMInformation [
add: (GSM48TimeZone asTLVDescription beOptional; yourself);
add: (GSM48TimeZoneAndTime asTLVDescription beOptional; yourself);
add: (GSM48LSAIdentifier asTLVDescription beOptional; yourself);
add: (GSM48DaylightSavingTime asTLVDescription beOptional; yourself);
yourself
]
]

View File

@ -454,6 +454,15 @@ TestCase subclass: GSM48Test [
dec := GSM48MSG decode: inp readStream.
self assert: dec toMessage asByteArray = inp.
]
testMMInformation [
| dec inp |
inp := #(16r05 16r32 16r45 16r08 16r87 16r4F 16rF7 16r35
16r6C 16r2F 16rCF 16r01 16r47 16r31 16r80 16r82
16r90 16r80 16r13 16r80 16r49 16r01 16r01) asByteArray.
dec := GSM48MSG decode: inp readStream.
self assert: dec toMessage asByteArray = inp.
]
]
SCCPHandler subclass: TestSCCPHandler [