Commit 9168df58 authored by rennoch's avatar rennoch
Browse files

add aux. functions await/send CxDx messages

parent 2061be5b
Loading
Loading
Loading
Loading
+198 −0
Original line number Diff line number Diff line
@@ -225,6 +225,96 @@ group AwaitingMessage {
        //store specific parameter for ACA if needed
    }

    function f_awaiting_UAA(template (present)UAA_MSG p_UAA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({uAA_MSG:=p_UAA});
        //store specific parameter for UAA if needed
    }
    
    function f_awaiting_SAA(template (present)SAA_MSG p_SAA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({sAA_MSG:=p_SAA});
        //store specific parameter for SAA if needed
    }

    function f_awaiting_RTR(template (present)RTR_MSG p_RTR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({rTR_MSG:=p_RTR});
        //store specific parameter for RTR if needed
        vc_sessionId := vc_recvDiamMsg.rTR_MSG.session_Id;
        vc_recv_hopid:= vc_recvDiamMsg.rTR_MSG.header.hopid;
        vc_recv_endid:= vc_recvDiamMsg.rTR_MSG.header.endid;
    }
        
    function f_awaiting_LIA(template (present)LIA_MSG p_LIA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({lIA_MSG:=p_LIA});
        //store specific parameter for LIA if needed
    }

    function f_awaiting_PPR(template (present)PPR_MSG p_PPR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({pPR_MSG:=p_PPR});
        //store specific parameter for RTR if needed
        vc_sessionId := vc_recvDiamMsg.pPR_MSG.session_Id;
        vc_recv_hopid:= vc_recvDiamMsg.pPR_MSG.header.hopid;
        vc_recv_endid:= vc_recvDiamMsg.pPR_MSG.header.endid;
    }
        
    function f_awaiting_MAA(template (present)MAA_MSG p_MAA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({mAA_MSG:=p_MAA});
        //store specific parameter for MAA if needed
    }
        
    function f_awaiting_RTA(template (present)RTA_MSG p_RTA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({rTA_MSG:=p_RTA});
        //store specific parameter for RTA if needed
    }

    function f_awaiting_UAR(template (present)UAR_MSG p_UAR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({uAR_MSG:=p_UAR});
        //store specific parameter for UAR if needed
        vc_sessionId := vc_recvDiamMsg.uAR_MSG.session_Id;
        vc_recv_hopid:= vc_recvDiamMsg.uAR_MSG.header.hopid;
        vc_recv_endid:= vc_recvDiamMsg.uAR_MSG.header.endid;
    }    
    
    function f_awaiting_SAR(template (present)SAR_MSG p_SAR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({sAR_MSG:=p_SAR});
        //store specific parameter for SAR if needed
        vc_sessionId := vc_recvDiamMsg.sAR_MSG.session_Id;
        vc_recv_hopid:= vc_recvDiamMsg.sAR_MSG.header.hopid;
        vc_recv_endid:= vc_recvDiamMsg.sAR_MSG.header.endid;
    }    
    
    function f_awaiting_LIR(template (present)LIR_MSG p_LIR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({lIR_MSG:=p_LIR});
        //store specific parameter for LIR if needed
        vc_sessionId := vc_recvDiamMsg.lIR_MSG.session_Id;
        vc_recv_hopid:= vc_recvDiamMsg.lIR_MSG.header.hopid;
        vc_recv_endid:= vc_recvDiamMsg.lIR_MSG.header.endid;
    }    
        
    function f_awaiting_PPA(template (present)PPA_MSG p_PPA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({pPA_MSG:=p_PPA});
        //store specific parameter for PPA if needed
    }  
    
    function f_awaiting_MAR(template (present)MAR_MSG p_MAR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({mAR_MSG:=p_MAR});
        //store specific parameter for MAR if needed
        vc_sessionId := vc_recvDiamMsg.mAR_MSG.session_Id;
        vc_recv_hopid:= vc_recvDiamMsg.mAR_MSG.header.hopid;
        vc_recv_endid:= vc_recvDiamMsg.mAR_MSG.header.endid;
    }    
      
} // end AwaitingMessage

group SendMessage {
@@ -423,6 +513,114 @@ group SendMessage {
        f_sendDiameterMsg({aCA_MSG:=p_ACA});
    }

    function f_send_UAR(template (value) UAR_MSG p_UAR) runs on DiameterComponent
    {
        tc_delay.start;
        alt
        { []tc_delay.timeout
            {} }

        //set specific parameter for UAR if needed

        f_sendDiameterMsg({uAR_MSG:=p_UAR});
    }

    function f_send_SAR(template (value) SAR_MSG p_SAR) runs on DiameterComponent
    {
        tc_delay.start;
        alt
        { []tc_delay.timeout
            {} }

        //set specific parameter for SAR if needed

        f_sendDiameterMsg({sAR_MSG:=p_SAR});
    }

    function f_send_RTA(template (value) RTA_MSG p_RTA) runs on DiameterComponent
    {
        //set specific parameter for RTA if needed

        f_sendDiameterMsg({rTA_MSG:=p_RTA});
    }

    function f_send_LIR(template (value) LIR_MSG p_LIR) runs on DiameterComponent
    {
        tc_delay.start;
        alt
        { []tc_delay.timeout
            {} }
            
        //set specific parameter for LIR if needed

        f_sendDiameterMsg({lIR_MSG:=p_LIR});
    }

    function f_send_PPA(template (value) PPA_MSG p_PPA) runs on DiameterComponent
    {
        //set specific parameter for PPA if needed

        f_sendDiameterMsg({pPA_MSG:=p_PPA});
    }

    function f_send_MAR(template (value) MAR_MSG p_MAR) runs on DiameterComponent
    {
        tc_delay.start;
        alt
        { []tc_delay.timeout
            {} }
            
        //set specific parameter for MAR if needed

        f_sendDiameterMsg({mAR_MSG:=p_MAR});
    }

    function f_send_RTR(template (value) RTR_MSG p_RTR) runs on DiameterComponent
    {
        tc_delay.start;
        alt
        { []tc_delay.timeout
            {} }
            
        //set specific parameter for RTR if needed

        f_sendDiameterMsg({rTR_MSG:=p_RTR});
    }
    
    function f_send_SAA(template (value) SAA_MSG p_SAA) runs on DiameterComponent
    {
        //set specific parameter for SAA if needed

        f_sendDiameterMsg({sAA_MSG:=p_SAA});
    }    
    
    function f_send_LIA(template (value) LIA_MSG p_LIA) runs on DiameterComponent
    {
        //set specific parameter for LIA if needed

        f_sendDiameterMsg({lIA_MSG:=p_LIA});
    }    

    function f_send_PPR(template (value) PPR_MSG p_PPR) runs on DiameterComponent
    {
        tc_delay.start;
        alt
        { []tc_delay.timeout
            {} }
            
        //set specific parameter for PPR if needed

        f_sendDiameterMsg({pPR_MSG:=p_PPR});
    }

    
    function f_send_MAA(template (value) MAA_MSG p_MAA) runs on DiameterComponent
    {
        //set specific parameter for MAA if needed

        f_sendDiameterMsg({mAA_MSG:=p_MAA});
    }    
        
} // end SendMessage

group GlobalSteps {