From 3ae5923e0f91f73cf7152438c68d532f2e15c234 Mon Sep 17 00:00:00 2001 From: reinaortega <miguelangel.reinaortega@etsi.org> Date: Wed, 7 Oct 2020 15:05:32 +0200 Subject: [PATCH] Adding the sending of a response in f_cse_notifyProcedure_noNotificationHandler Signed-off-by: reinaortega <miguelangel.reinaortega@etsi.org> --- LibOneM2M/OneM2M_Functions.ttcn | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn index 9bc6c2e..62fb83b 100644 --- a/LibOneM2M/OneM2M_Functions.ttcn +++ b/LibOneM2M/OneM2M_Functions.ttcn @@ -2392,7 +2392,8 @@ module OneM2M_Functions { */ function f_cse_notifyProcedure_noNotificationHandler() runs on AeSimu { // Local variables - + var ResponsePrimitive v_responsePrimitive; + //Activate defaults when running on a PTC f_cse_activateDefaults_ae(); @@ -2401,10 +2402,18 @@ module OneM2M_Functions { [] mcaPortIn.receive(mw_request(mw_notifyNotification(mw_contentNotification(?)))) -> value vc_request { tc_ac.stop; setverdict(fail, __SCOPE__ & ": Error, Non expected notification received"); + //Send response in any case + v_responsePrimitive := valueof(m_responseNotification(int2000, omit)); + v_responsePrimitive.requestIdentifier := vc_request.primitive.requestPrimitive.requestIdentifier; + f_send(e_mca_in_port, m_response(v_responsePrimitive)); } [] mcaPortIn.receive(mw_request(mw_notifyResponsePrimitive(?))) -> value vc_request { tc_ac.stop; setverdict(fail, __SCOPE__ & ": Error, Non expected notification received"); + //Send response in any case + v_responsePrimitive := valueof(m_responseNotification(int2000, omit)); + v_responsePrimitive.requestIdentifier := vc_request.primitive.requestPrimitive.requestIdentifier; + f_send(e_mca_in_port, m_response(v_responsePrimitive)); } [] tc_ac.timeout { setverdict(pass, __SCOPE__ & ": No notification received"); -- GitLab