Commit 70184ae5 authored by filatov's avatar filatov
Browse files

reorder send and awaiting functions

parent 6f8c97b7
Loading
Loading
Loading
Loading
+82 −75
Original line number Diff line number Diff line
@@ -225,25 +225,43 @@ group AwaitingMessage {
        //store specific parameter for ACA 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_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_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_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
    function f_awaiting_LIR(template (present)LIR_MSG p_LIR) 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;
        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_LIA(template (present)LIA_MSG p_LIA) runs on DiameterComponent
@@ -252,13 +270,13 @@ group AwaitingMessage {
        //store specific parameter for LIA if needed
    }

    function f_awaiting_PPR(template (present)PPR_MSG p_PPR) runs on DiameterComponent
    function f_awaiting_MAR(template (present)MAR_MSG p_MAR) 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;
        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;
    }    
      
    function f_awaiting_MAA(template (present)MAA_MSG p_MAA) runs on DiameterComponent
@@ -267,37 +285,28 @@ group AwaitingMessage {
        //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
    function f_awaiting_RTR(template (present)RTR_MSG p_RTR) 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;
        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_SAR(template (present)SAR_MSG p_SAR) runs on DiameterComponent
    function f_awaiting_RTA(template (present)RTA_MSG p_RTA) 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;
        f_awaitingDiameterMsg({rTA_MSG:=p_RTA});
        //store specific parameter for RTA if needed
    }

    function f_awaiting_LIR(template (present)LIR_MSG p_LIR) runs on DiameterComponent
    function f_awaiting_PPR(template (present)PPR_MSG p_PPR) 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;
        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_PPA(template (present)PPA_MSG p_PPA) runs on DiameterComponent
@@ -306,15 +315,6 @@ group AwaitingMessage {
        //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 {
@@ -525,6 +525,13 @@ group SendMessage {
        f_sendDiameterMsg({uAR_MSG:=p_UAR});
    }

    function f_send_UAA(template (value) UAA_MSG p_UAA) runs on DiameterComponent
    {
        //set specific parameter for UAA if needed

        f_sendDiameterMsg({uAA_MSG:=p_UAA});
    }    
    
    function f_send_SAR(template (value) SAR_MSG p_SAR) runs on DiameterComponent
    {
        tc_delay.start;
@@ -537,11 +544,11 @@ group SendMessage {
        f_sendDiameterMsg({sAR_MSG:=p_SAR});
    }

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

        f_sendDiameterMsg({rTA_MSG:=p_RTA});
        f_sendDiameterMsg({sAA_MSG:=p_SAA});
    }    
    
    function f_send_LIR(template (value) LIR_MSG p_LIR) runs on DiameterComponent
@@ -556,11 +563,11 @@ group SendMessage {
        f_sendDiameterMsg({lIR_MSG:=p_LIR});
    }

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

        f_sendDiameterMsg({pPA_MSG:=p_PPA});
        f_sendDiameterMsg({lIA_MSG:=p_LIA});
    }    

    function f_send_MAR(template (value) MAR_MSG p_MAR) runs on DiameterComponent
@@ -575,6 +582,13 @@ group SendMessage {
        f_sendDiameterMsg({mAR_MSG:=p_MAR});
    }

    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});
    }    
        
    function f_send_RTR(template (value) RTR_MSG p_RTR) runs on DiameterComponent
    {
        tc_delay.start;
@@ -587,18 +601,11 @@ group SendMessage {
        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
    function f_send_RTA(template (value) RTA_MSG p_RTA) runs on DiameterComponent
    {
        //set specific parameter for LIA if needed
        //set specific parameter for RTA if needed

        f_sendDiameterMsg({lIA_MSG:=p_LIA});
        f_sendDiameterMsg({rTA_MSG:=p_RTA});
    }

    function f_send_PPR(template (value) PPR_MSG p_PPR) runs on DiameterComponent
@@ -613,14 +620,14 @@ group SendMessage {
        f_sendDiameterMsg({pPR_MSG:=p_PPR});
    }

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

        f_sendDiameterMsg({mAA_MSG:=p_MAA});
        f_sendDiameterMsg({pPA_MSG:=p_PPA});
    }

    
} // end SendMessage

group GlobalSteps {