Пример #1
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                  Trans=True),
         Type4_TLV('BearerCap', T=0x4, V=BearerCap()),
         Type4_TLV('BearerCap_2', T=0x4, V=BearerCap(), Trans=True),
         Type4_TLV('Cause', T=0x8, V='\0\x80'),
         Type4_TLV('SuppCodecs', ReprName='Supported codecs list', \
                   T=0x40, V='\0\0\0')])
     self._post_init(with_options, **kwargs)
Пример #2
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                   Trans=True),
         Type4_TLV('BearerCap', T=0x4, V=BearerCap()),
         Type4_TLV('BearerCap_2', T=0x4, V=BearerCap(), Trans=True),
         Type4_TLV('Facility', T=0x1C, V=''),
         Type4_TLV('ProgressInd', T=0x1E, V='\x80\x80'),
         Type1_TV('Priority', T=0x8, V=0),
         Type4_TLV('NetCCCap', T=0x2F, V='\0')])
     self._post_init(with_options, **kwargs)
Пример #3
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('BearerCap', V=BearerCap()),
         Type4_LV('Cause', V='\0\x80'),
         Type4_TLV('LowLayerComp', T=0x7C, V=''),
         Type4_TLV('HighLayerComp', T=0x7D, V='')])
     self._post_init(with_options, **kwargs)
Пример #4
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('BearerCap', V=BearerCap()),
         Type4_TLV('LowLayerComp', T=0x7C, V=''),
         Type4_TLV('HighLayerComp', T=0x7D, V=''),
         Type2('Reverse', T=0xA3),
         Type2('UpgradeInd', T=0xA4)])
     self._post_init(with_options, **kwargs)
Пример #5
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('BearerCap', T=0x4, V=BearerCap()),
         Type4_TLV('StreamId', T=0x2D, V='\0'),
         Type4_TLV('SuppCodecs', ReprName='Supported codecs list', \
                   T=0x40, V='\0\0\0'),
         Type4_TLV('EC', ReprName='Emergency Category', \
                   T=0x2E, V='\0')])
     self._post_init(with_options, **kwargs)
Пример #6
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                  Trans=True),
         Type4_TLV('BearerCap', T=0x4, V=BearerCap()),
         Type4_TLV('BearerCap_2', T=0x4, V=BearerCap(), Trans=True),
         Type4_TLV('Facility', T=0x1C, V='')])
     if self._initiator == 'Net':
         # network to MS direction
         self.extend([ \
         Type4_TLV('ProgressInd', T=0x1E, V='\x80\x80'),
         Type3_TV('Signal', T=0x34, V='\0', Len=1),
         Type4_TLV('CallingBCD', T=0x5C, V='\0'),
         Type4_TLV('CallingSub', T=0x5D, V=''),
         Type4_TLV('CalledBCD', T=0x5E, V='\0'),
         Type4_TLV('CalledSub', T=0x6D, V=''),
         Type4_TLV('RedirectingBCD', T=0x74, V='\0'),
         Type4_TLV('RedirectingSub', T=0x75, V=''),
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                  Trans=True),
         Type4_TLV('LowLayerComp', T=0x7C, V='\0'),
         Type4_TLV('LowLayerComp_2', T=0x7C, V='\0', Trans=True),
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                  Trans=True),
         Type4_TLV('HighLayerComp', T=0x7D, V='\0'),
         Type4_TLV('HighLayerComp_2', T=0x7D, V='\0', Trans=True),
         Type4_TLV('UU', ReprName='User-User', T=0x7E, \
                   V='\0'),
         Type1_TV('Priority', T=0x8, V=0),
         Type4_TLV('Alert', T=0x19, V='\0'),
         Type4_TLV('NetCCCap', T=0x2F, V='\0'),
         Type4_TLV('CauseNoCLI', T=0x3A, V='\0'),
         Type4_TLV('BUBearerCap', T=0x41, V='\0')])
     else:
         # MS to network direction
         self.extend([ \
         Type4_TLV('CallingSub', T=0x5D, V=''),
         Type4_TLV('CalledBCD', T=0x5E, V='\0'),
         Type4_TLV('CalledSub', T=0x6D, V=''),
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                  Trans=True),
         Type4_TLV('LowLayerComp', T=0x7C, V='\0'),
         Type4_TLV('LowLayerComp_2', T=0x7C, V='\0', Trans=True),
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                  Trans=True),
         Type4_TLV('HighLayerComp', T=0x7D, V='\0'),
         Type4_TLV('HighLayerComp_2', T=0x7D, V='\0', Trans=True),
         Type4_TLV('UU', ReprName='User-User', T=0x7E, \
                   V='\0'),
         Type4_TLV('SSversion', T=0x7F, V=''),
         Type2('CLIRSuppr', T=0x8),
         Type2('CLIRInvoc', T=0x19),
         Type4_TLV('CCCap', T=0x15, V=CCCap()),
         Type4_TLV('FacilityAdvanced', T=0x1D, V=''),
         Type4_TLV('FacilityNotEssential', T=0x1B, V=''),
         Type4_TLV('StreamId', T=0x2D, V='\0\0'),
         Type4_TLV('SuppCodecs', ReprName='Supported Codecs List', \
                   T=0x40, V='\0\0\0'),
         Type2('Redial', T=0xA3)])
     self._post_init(with_options, **kwargs)