Esempio n. 1
0
 def __init__(self):
     self._set_session = SetSMSessionContext(
         common_context=CommonSessionContext(
             sid=SubscriberID(id="IMSI12345"),
             ue_ipv4="192.168.128.11",
             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=1,
                 request_type=RequestType.Name(0, ),
                 gnode_endpoint=TeidSet(
                     teid=10000,
                     end_ipv4_addr="192.168.60.141",
                 ),
                 pdu_session_type=PduSessionType.Name(0),
                 ssc_mode=SscMode.Name(2),
                 subscribed_qos=M5GQosInformationRequest(
                     apn_ambr_ul=750000,
                     apn_ambr_dl=1000000,
                     priority_level=1,
                     preemption_capability=1,
                     preemption_vulnerability=1,
                     qos_class_id=9,
                     br_unit=M5GQosInformationRequest.BitrateUnitsAMBR.Name(
                         1),
                 ),
             ), ),
     )
Esempio n. 2
0
 def __init__(self):
     self._set_session =\
         SetSMSessionContext(
             common_context=CommonSessionContext(
                 sid=SubscriberID(id="IMSI987654"),
                 ue_ipv4="192.168.128.111",
                 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=300,
                         end_ipv4_addr="192.168.60.141",
                     ),
                     pdu_session_type=PduSessionType.Name(0),
                     ssc_mode=SscMode.Name(2),
                 ),
             ),
         )
Esempio n. 3
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),
                 ),
             ),
         )
Esempio n. 4
0
 def __init__(self):
     self._set_session = SetSMSessionContext(
         common_context=CommonSessionContext(
             sid=SubscriberID(id="IMSI12345"),
             ue_ipv4="192.168.128.11",
             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=1,
                 request_type=RequestType.Name(
                     0,
                 ),
                 gnode_endpoint=TeidSet(
                     teid=10000,
                     end_ipv4_addr="192.168.60.141",
                 ),
                 pdu_session_type=PduSessionType.Name(0),
                 ssc_mode=SscMode.Name(2),
                 default_ambr=AggregatedMaximumBitrate(
                     max_bandwidth_ul=750000,
                     max_bandwidth_dl=1000000,
                 ),
             ),
         ),
     )
Esempio n. 5
0
 def __init__(self):
     self._set_session = SetSMSessionContext(
         common_context=CommonSessionContext(
             sid=SubscriberID(id="IMSI12345"),
             ue_ipv4="192.168.128.11",
             apn=bytes("BLR", 'utf-8'),
             rat_type=RATType.Name(2),
             sm_session_state=SMSessionFSMState.Name(2),
             sm_session_version=1,
         ),
         rat_specific_context=RatSpecificContext(
             m5gsm_session_context=M5GSMSessionContext(
                 pdu_session_id=1,
                 request_type=RequestType.Name(
                     1,
                 ),
                 gnode_endpoint=TeidSet(
                     teid=10000,
                     end_ipv4_addr="192.168.60.141",
                 ),
                 pdu_session_type=PduSessionType.Name(0),
                 ssc_mode=SscMode.Name(2),
                 qos_policy=[
                     QosPolicy(
                         policy_state=0,
                         policy_action=1,
                         version=2,
                         qos=PolicyRule(
                             id="ims-voice",
                             priority=10,
                             flow_list=[],
                             qos=FlowQos(
                                 qci=int(5),
                                 max_req_bw_ul=100000,
                                 max_req_bw_dl=100000,
                                 arp=QosArp(
                                     priority_level=1,
                                     pre_capability=1,
                                     pre_vulnerability=0,
                                 ),
                             ),
                         ),
                     ),
                 ],
             ),
         ),
     )