mobile: fix SCCP long unit data service

This commit is contained in:
mich 2018-09-25 14:10:16 +02:00
parent 0964067e83
commit 106dc68664
2 changed files with 4 additions and 3 deletions

View File

@ -1194,7 +1194,7 @@ class SCCPLongUnitData(SCCPMessage):
# ITU-T Q.713, section 4.21
#------------------------------------------------------------------------------#
class SCCPLongUnitData(SCCPMessage):
class SCCPLongUnitDataService(SCCPMessage):
_GEN = (
Uint8('Type', val=20, dic=_SCCPType_dict),
RetCause(),
@ -1240,7 +1240,7 @@ SCCPTypeClasses = {
17 : SCCPExtUnitData,
18 : SCCPExtUnitDataService,
19 : SCCPLongUnitData,
20 : SCCPLongUnitData
20 : SCCPLongUnitDataService,
}
def get_sccp_msg_instances():
@ -1395,7 +1395,7 @@ def parse_SCCP(buf):
except:
return None, 2
#
# if SCMG, parse it further (UDT/XUDT/LUDT, ProtocolClass 0, both addresses on SSN 1)
# if SCMG, parses it further (UDT/XUDT/LUDT, ProtocolClass 0, both addresses on SSN 1)
try:
if Msg[0].get_val() in (9, 17, 19) and Msg[1][1].get_val() == 0 and \
Msg[3][1][0]['RoutingInd'].get_val() == 1 and Msg[3][1][0]['SSNInd'].get_val() == 1 and Msg[3][1]['SSN'].get_val() == 1 and \

View File

@ -472,6 +472,7 @@ class Param(Envelope):
self[3].set_valauto(lambda: (4-self[2].get_len()%4)%4 * self._pad)
self[3].set_blauto(lambda: 8*((4-self[2].get_len()%4)%4))
class SIGTRAN(Envelope):
_TypeUndef_dict = {}
_Type_dict = {