Exemplo n.º 1
0
 def __init__(self):
     self._set_session =\
         SetSMSessionContext(
             common_context=CommonSessionContext(
                 sid=SubscriberID(id="IMSI12345"),
                 apn=bytes("BLR", 'utf-8'),
                 rat_type=RATType.Name(2),
                 sm_session_state=SMSessionFSMState.Name(0),
                 sm_session_version=0,
             ),
             rat_specific_context=RatSpecificContext(
                 m5gsm_session_context=M5GSMSessionContext(
                     pdu_session_id=2,
                     request_type=RequestType.Name(
                         0,
                     ),
                     gnode_endpoint=TeidSet(
                         teid=10001,
                         end_ipv4_addr="192.168.60.141",
                     ),
                     pdu_address=RedirectServer(
                         redirect_address_type=RedirectServer.IPV4,
                         redirect_server_address="192.168.128.12",
                     ),
                     pdu_session_type=PduSessionType.Name(0),
                     ssc_mode=SscMode.Name(2),
                 ),
             ),
         )
Exemplo n.º 2
0
 def __init__(self):
     self._set_session =\
         SetSMSessionContext(
             common_context=CommonSessionContext(
                 sid=SubscriberID(id="IMSI987654"),
                 apn=bytes("BLR", 'utf-8'), rat_type=RATType.Name(2),
                 sm_session_state=SMSessionFSMState.Name(4),
                 sm_session_version=6,
             ),
             rat_specific_context=RatSpecificContext(
                 m5gsm_session_context=M5GSMSessionContext(
                     pdu_session_id=2,
                     request_type=RequestType.Name(
                         1,
                     ),
                     pdu_address=RedirectServer(
                         redirect_address_type=RedirectServer.IPV4,
                         redirect_server_address="192.168.128.111",
                     ),
                     pdu_session_type=PduSessionType.IPV4,
                 ),
             ),
         )