Commit f97f39b8 authored by Bostjan Pintar's avatar Bostjan Pintar
Browse files

LibDiameter templates for SNR messages added

parent 8ae64e39
Loading
Loading
Loading
Loading
+40 −1
Original line number Diff line number Diff line
@@ -652,6 +652,26 @@ group AwaitingMessage {
        //store specific parameter for NOA if needed
    }
    
    function f_awaiting_SNR(template (present)SNR_MSG p_SNR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({sNR_MSG:=p_SNR});
        //store specific parameter for SAR if needed
        if (ischosen (vc_recvDiamMsg.sNR_MSG)){
            vc_sessionId := vc_recvDiamMsg.sNR_MSG.session_Id;
            vc_recv_hopid:= vc_recvDiamMsg.sNR_MSG.header.hopid;
            vc_recv_endid:= vc_recvDiamMsg.sNR_MSG.header.endid;
        } else 
        {
            log("WARNING: " & __SCOPE__ & "vc_recvDiamMsg different message as expected:", vc_recvDiamMsg);
        }
    }    
    
    function f_awaiting_SNA(template (present)SNA_MSG p_SNA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({sNA_MSG:=p_SNA});
        //store specific parameter for SAA if needed
    }
    
} // end AwaitingMessage

group SendMessage {
@@ -1173,6 +1193,25 @@ group SendMessage {
        f_sendDiameterMsg({nOA_MSG:=p_NOA});
    }

    function f_send_SNR(template (value) SNR_MSG p_SNR) runs on DiameterComponent
    {
        tc_delay.start;
        alt
        { []tc_delay.timeout
            {} }
        
        //set specific parameter for SNR if needed

        f_sendDiameterMsg({sNR_MSG:=p_SNR});
    }

    function f_send_SNA(template (value) SNA_MSG p_SNA) runs on DiameterComponent
    {
        //set specific parameter for SNA if needed

        f_sendDiameterMsg({sNA_MSG:=p_SNA});
    }

    
} // end SendMessage

+36 −0
Original line number Diff line number Diff line
@@ -685,6 +685,11 @@ module LibDiameter_Templates {
                }
            }

            template Subs_Req_Type_AVP m_subs_Req_Type_dummy := {
                aVP_Header := m_aVP_HeaderVid_Mbit1(c_subs_Req_Type_AVP_Code, 4, c_vendId3gpp),
                aVP_Data := SUBSCRIBE_E
            }
            
        } //end group DummyAVPHeaders

        group SpecificAVPHeaders {
@@ -1433,6 +1438,37 @@ module LibDiameter_Templates {
                aVP_Type := omit
            }

            template (value) SNR_MSG m_SNR_dummy := {
                header := m_diameterHeaderReq_dummy(SNR_E, c_applId3GPPCxDx),
                session_Id := m_sessionId_dummy,
                sNR_Body := m_SNR_Body_dummy
            }
            
            template (value) SNR_Body_AVP m_SNR_Body_dummy :=
            {
                vendor_Specific_Application_Id := m_vendor_Specific_Appl_Id_dummy,//required only in TS129 229
                auth_Session_State := m_auth_Session_State_dummy,
                origin_Host := m_originHost_dummy,
                origin_Realm := m_originRealm_dummy,
                destination_Host := omit,
                destination_Realm := m_destinationRealm_dummy,
                supported_Features := omit,
                user_Identity := m_user_Identity_dummy,
                wildcarded_PSI := omit,
                wildcarded_IMPU := omit,
                service_Indication := omit,
                send_Data_Indication := omit,
                server_Name := omit,
                subs_Req_Type := m_subs_Req_Type_dummy,
                data_Reference := {m_data_Reference_dummy},
                identity_Set := omit,
                expiry_Time := omit,
                dSAI_Tag := omit,
                proxy_Info := omit,
                route_Record := omit,
                aVP_Type := omit
            }

            template (value) STR_MSG m_STR_dummy :=
            {
                header := m_diameterHeaderReq_dummy(STR_E, c_applIdCommonMsg),
+13 −2
Original line number Diff line number Diff line
@@ -399,8 +399,19 @@ module LibDiameter_Types_Base_AVPs {
                MSISDN_E (17),
                PSI_ACTIVATION_E (18),
                DSAI_E (19),
                SERVICE_TRACE_LEVEL_INFO_E (21),
                TADSinformation_E (26)
                SERVICE_LEVEL_TRACE_INFO_E (21),
                IP_ADDRESS_SECURE_BINDING_INFORMATION_E (22),
                SERVICE_PRIORITY_LEVEL_E (23),
                SMS_REGISTRATION_INFO_E (24),
                UE_REACHABILITY_FOR_IP_E (25),
                TADS_INFORMATION_E (26),
                STN_SR_E (27),
                UE_SRVCC_CAPABILITY_E (28),
                EXTENDED_PRIORITY_E (29),
                CSRN_E (30),
                REFERENCE_LOCATION_INFORMATION (31),
                IMSI (32),
                IMS_PRIVATE_USER_IDENTITY_E (33)
            }
            with {
                     variant "length=32"