Commit 9ca3fcb9 authored by pintar's avatar pintar
Browse files

New functions are declared

parent b92555e7
Loading
Loading
Loading
Loading
+87 −2
Original line number Diff line number Diff line
@@ -181,6 +181,32 @@ group AwaitingMessage {
        //store specific parameter for RAA if needed
    }
    
    function f_awaiting_CCR(template (present)CCR_MSG p_CCR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({cCR_MSG:=p_CCR});
        //store specific parameter for CCR if needed
        vc_sessionId := vc_recvDiamMsg.cCR_MSG.session_Id;
    }
    
    function f_awaiting_CCA(template (present)CCA_MSG p_CCA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({cCA_MSG:=p_CCA});
        //store specific parameter for CCA if needed
    }
    
    function f_awaiting_ACR(template (present)ACR_MSG p_ACR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({aCR_MSG:=p_ACR});
        //store specific parameter for ACR if needed
        vc_sessionId := vc_recvDiamMsg.aCR_MSG.session_Id;
    }
    
    function f_awaiting_ACA(template (present)ACA_MSG p_ACA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({aCA_MSG:=p_ACA});
        //store specific parameter for ACA if needed
    }
	
} // end AwaitingMessage

group SendMessage {
@@ -320,6 +346,7 @@ group SendMessage {
        p_ASA.header.msglen := lengthof(encvalue(p_ASA));                
        f_sendDiameterMsg({aSA_MSG:=p_ASA});
    }
    
    function f_send_RAR(template (value) RAR_MSG p_RAR) runs on DiameterComponent
    {
        //set specific parameter for RAR if needed
@@ -338,6 +365,42 @@ group SendMessage {
        f_sendDiameterMsg({rAA_MSG:=p_RAA});
    }
    
    function f_send_CCR(template (value) CCR_MSG p_CCR) runs on DiameterComponent
    {
        //set specific parameter for CCR if needed
        
        //insert length of message        
        p_CCR.header.msglen := lengthof(encvalue(p_CCR));                
        f_sendDiameterMsg({cCR_MSG:=p_CCR});
    }
    
    function f_send_CCA(template (value) CCA_MSG p_CCA) runs on DiameterComponent
    {
        //set specific parameter for CCA if needed
        
        //insert length of message        
        p_CCA.header.msglen := lengthof(encvalue(p_CCA));                
        f_sendDiameterMsg({cCA_MSG:=p_CCA});
    }
    
    function f_send_ACR(template (value) ACR_MSG p_ACR) runs on DiameterComponent
    {
        //set specific parameter for ACR if needed
        
        //insert length of message        
        p_ACR.header.msglen := lengthof(encvalue(p_ACR));                
        f_sendDiameterMsg({aCR_MSG:=p_ACR});
    }
    
    function f_send_ACA(template (value) ACA_MSG p_ACA) runs on DiameterComponent
    {
        //set specific parameter for ACA if needed
        
        //insert length of message        
        p_ACA.header.msglen := lengthof(encvalue(p_ACA));                
        f_sendDiameterMsg({aCA_MSG:=p_ACA});
    }

} // end SendMessage

group GlobalSteps {
@@ -696,6 +759,19 @@ group GlobalSteps {
        		stop;
        	}
	
            /**
             * 
             * @desc original copied from older LibCommon_VerdictControl
             */
                function f_getVerdict()
                return FncRetCode {
                    var FncRetCode v_ret := e_error;
                    if (getverdict == pass or getverdict == none) {
                        v_ret := e_success;	
                    }
                    return v_ret;
                }

}// end group GlobalSteps


@@ -770,7 +846,7 @@ group Preambles {
    group preamble_Diameter{
        
        
        function f_preambleDiameterBase()runs on DiameterComponent
        function f_preambleDiameterBaseClient()runs on DiameterComponent
        {
            
            f_send_CER(m_CER_basic(vc_originHost, vc_originRealm, vc_hostIPAddress));
@@ -779,6 +855,15 @@ group Preambles {
            f_awaiting_DWA(mw_DWA_dummy);
        }
        
        function f_preambleDiameterBaseServer()runs on DiameterComponent
        {
            
            f_awaiting_CER(mw_CER_dummy);
            f_send_CEA(m_CEA_basic(vc_originHost, vc_originRealm, vc_hostIPAddress));
            f_send_DWR(m_DWR_basic(vc_originHost, vc_originRealm));
            f_awaiting_DWA(mw_DWA_dummy);
        }
    
    }//end group preamble_Diameter