Loading ttcn/LibDiameter_Steps.ttcn +39 −0 Original line number Diff line number Diff line Loading @@ -330,6 +330,26 @@ group AwaitingMessage { //store specific parameter for UAA if needed } function f_awaiting_UDR(template (present)UDR_MSG p_UDR) runs on DiameterComponent { f_awaitingDiameterMsg({uAR_MSG:=p_UDR}); //store specific parameter for UDR if needed if (ischosen (vc_recvDiamMsg.uAR_MSG)){ 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; } else { log("WARNING: " & __SCOPE__ & "vc_recvDiamMsg different message as expected:", vc_recvDiamMsg); } } function f_awaiting_UDA(template (present)UDA_MSG p_UDA) runs on DiameterComponent { f_awaitingDiameterMsg({uAA_MSG:=p_UDA}); //store specific parameter for UDA if needed } function f_awaiting_SAR(template (present)SAR_MSG p_SAR) runs on DiameterComponent { f_awaitingDiameterMsg({sAR_MSG:=p_SAR}); Loading Loading @@ -809,6 +829,25 @@ group SendMessage { f_sendDiameterMsg({uAA_MSG:=p_UAA}); } function f_send_UDR(template (value) UDR_MSG p_UDR) runs on DiameterComponent { tc_delay.start; alt { []tc_delay.timeout {} } //set specific parameter for UDR if needed f_sendDiameterMsg({uAR_MSG:=p_UDR}); } function f_send_UDA(template (value) UDA_MSG p_UDA) runs on DiameterComponent { //set specific parameter for UDA if needed f_sendDiameterMsg({uAA_MSG:=p_UDA}); } function f_send_SAR(template (value) SAR_MSG p_SAR) runs on DiameterComponent { tc_delay.start; Loading ttcn/LibDiameter_TypesAndValues.ttcn +2 −1 Original line number Diff line number Diff line Loading @@ -61,7 +61,8 @@ group BasicTypesAndConstants{ const UInt32 c_applIdDx:= 16777224; //For Dx messages const UInt32 c_applIdRf:= 3;//16777218; //For Rf/Ro messages const UInt32 c_applIdRo:= 4;//16777218; //For Rf/Ro messages const UInt32 c_applIdSh:= 5;//16777218; //For Sh/Dh messages const UInt32 c_applIdDh:= 6;//16777218; //For Sh/Dh messages } // End of group ApplicationIdConstants group SMINetworkManagementPrivateEnterpriseCodes_VendorIDAVP { Loading Loading
ttcn/LibDiameter_Steps.ttcn +39 −0 Original line number Diff line number Diff line Loading @@ -330,6 +330,26 @@ group AwaitingMessage { //store specific parameter for UAA if needed } function f_awaiting_UDR(template (present)UDR_MSG p_UDR) runs on DiameterComponent { f_awaitingDiameterMsg({uAR_MSG:=p_UDR}); //store specific parameter for UDR if needed if (ischosen (vc_recvDiamMsg.uAR_MSG)){ 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; } else { log("WARNING: " & __SCOPE__ & "vc_recvDiamMsg different message as expected:", vc_recvDiamMsg); } } function f_awaiting_UDA(template (present)UDA_MSG p_UDA) runs on DiameterComponent { f_awaitingDiameterMsg({uAA_MSG:=p_UDA}); //store specific parameter for UDA if needed } function f_awaiting_SAR(template (present)SAR_MSG p_SAR) runs on DiameterComponent { f_awaitingDiameterMsg({sAR_MSG:=p_SAR}); Loading Loading @@ -809,6 +829,25 @@ group SendMessage { f_sendDiameterMsg({uAA_MSG:=p_UAA}); } function f_send_UDR(template (value) UDR_MSG p_UDR) runs on DiameterComponent { tc_delay.start; alt { []tc_delay.timeout {} } //set specific parameter for UDR if needed f_sendDiameterMsg({uAR_MSG:=p_UDR}); } function f_send_UDA(template (value) UDA_MSG p_UDA) runs on DiameterComponent { //set specific parameter for UDA if needed f_sendDiameterMsg({uAA_MSG:=p_UDA}); } function f_send_SAR(template (value) SAR_MSG p_SAR) runs on DiameterComponent { tc_delay.start; Loading
ttcn/LibDiameter_TypesAndValues.ttcn +2 −1 Original line number Diff line number Diff line Loading @@ -61,7 +61,8 @@ group BasicTypesAndConstants{ const UInt32 c_applIdDx:= 16777224; //For Dx messages const UInt32 c_applIdRf:= 3;//16777218; //For Rf/Ro messages const UInt32 c_applIdRo:= 4;//16777218; //For Rf/Ro messages const UInt32 c_applIdSh:= 5;//16777218; //For Sh/Dh messages const UInt32 c_applIdDh:= 6;//16777218; //For Sh/Dh messages } // End of group ApplicationIdConstants group SMINetworkManagementPrivateEnterpriseCodes_VendorIDAVP { Loading