Commit 5b6c388a authored by juvancic's avatar juvancic
Browse files

added send/receive funct for pur/pua

parent 8cb2461b
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
@@ -472,6 +472,26 @@ group AwaitingMessage {
        //store specific parameter for PPA if needed
    }  

    function f_awaiting_PUR(template (present)PUR_MSG p_PUR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({pUR_MSG:=p_PUR});
        //store specific parameter for PUR if needed
        if (ischosen (vc_recvDiamMsg.pUR_MSG)){
            vc_sessionId := vc_recvDiamMsg.pUR_MSG.session_Id;
            vc_recv_hopid:= vc_recvDiamMsg.pUR_MSG.header.hopid;
            vc_recv_endid:= vc_recvDiamMsg.pUR_MSG.header.endid;
        } else 
        {
            log("WARNING: " & __SCOPE__ & "vc_recvDiamMsg different message as expected:", vc_recvDiamMsg);
        }
    }
    
    function f_awaiting_PUA(template (present)PUA_MSG p_PUA) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({pUA_MSG:=p_PUA});
        //store specific parameter for PUA if needed
    }

    function f_awaiting_ULR(template (present)ULR_MSG p_ULR) runs on DiameterComponent
    {
        f_awaitingDiameterMsg({uLR_MSG:=p_ULR});
@@ -982,6 +1002,25 @@ group SendMessage {
        f_sendDiameterMsg({pPA_MSG:=p_PPA});
    }

    function f_send_PUR(template (value) PUR_MSG p_PUR) runs on DiameterComponent
    {
        tc_delay.start;
        alt
        { []tc_delay.timeout
            {} }
        
        //set specific parameter for PUR if needed

        f_sendDiameterMsg({pUR_MSG:=p_PUR});
    }

    function f_send_PUA(template (value) PUA_MSG p_PUA) runs on DiameterComponent
    {
        //set specific parameter for PUA if needed

        f_sendDiameterMsg({pUA_MSG:=p_PUA});
    }

    function f_send_ULR(template (value) ULR_MSG p_ULR) runs on DiameterComponent
    {
        tc_delay.start;