log(self,"### a_default_sip: Request default for "&p_TP);
repeat;
}
[]sipPort.receive(Response:?){
log(self,"### a_default_sip: Response default for "&p_TP);
repeat;
}
[]sipPort.receive{
log(self,"*** a_default_sip: Received/ignored unexpected message when waiting for message complying to "&p_TP);
//setverdict(fail, self, "### YANN: If execution is here, this means that the message was not properly decoded due to sip/sdp-codets exception, check MMagic logs");
//stop; // YANN: If execution is here, this means that the message was not properly decoded
log(self,"### a_default_diameter: Request default for "&p_TP);
repeat;
}
[]diameterPort.receive{
log(self,"*** a_default_diameter: Received/ignored unexpected message when waiting for message complying to "&p_TP);
//setverdict(fail, self, "### YANN: If execution is here, this means that the message was not properly decoded due to sip/sdp-codets exception, check MMagic logs");
//stop; // YANN: If execution is here, this means that the message was not properly decoded
repeat;
}
}
/**
/**
* @desc This altstep add one alternative checking for a very specifc SIP request.
* @desc This altstep add one alternative checking for a very specifc SIP request.
If it matches then the conformance verdict is set to requested verdict
If it matches then the conformance verdict is set to requested verdict
f_setConformanceVerdict(p_verdict,"***a_receive_sipRequest: Received expected SIP request complying to "&p_tpId&" on interface "&vc_interfaceName&" ***");
f_setConformanceVerdict(p_verdict,"***a_receive_sipResponse: Received expected SIP request complying to "&p_tpId&" on interface "&vc_interfaceName&" ***");
f_setConformanceVerdict(p_verdict,"***a_receive_diameter: Received expected diameter MSG complying to "&p_tpId&" on interface "&vc_interfaceName&" ***");
if(p_forwardMtc){
varDIAMETER_MSGv_msg;
v_msg:=v_message;
log("### Forwarding message to MTC");
//icpPort.send(v_msg); //TODO: check how to sync diameter with MTC
log("***f_gen_sip_receive: Message skipped (intentionally) when checking for "&p_tpId&" at interface "&vc_interfaceName&" ****");
repeat;
}
[]tc_wait.timeout{
f_setConformanceVerdict(inconc,"***f_gen_sip_receive: Timer tc_wait expired when waiting for incoming message in "&p_tpId&" at interface "&vc_interfaceName&" ****");
}
}
}
/**
* @desc This function implements skipping of messages as well as timeout handling.
* Prior to calling this function the message to be cheked for should be added
* as defaults.
* This function is independent of a specific interface component.
* @param p_tpId The Test Purpose identifier
* @param p_skipCount Indicate how many messages should be skipped prior to checking
log("***f_gen_diameter_receive: Message skipped (intentionally) when checking for "&p_tpId&" at interface "&vc_interfaceName&" ****");
repeat;
}
[]tc_wait.timeout{
f_setConformanceVerdict(inconc,"***f_gen_diameter_receive: Timer tc_wait expired when waiting for incoming message in "&p_tpId&" at interface "&vc_interfaceName&" ****");
}
}
}
/**
/**
* @desc Activates for each entry in a expected IMS SIP message list a default
* @desc Activates for each entry in a expected IMS SIP message list a default
* for receiving that message and setting the verdict as desired
* for receiving that message and setting the verdict as desired
// if (PX_AVAILABLE_INTERFACES[i].interfaceName == vc_interfaceName) {
// if (PX_AVAILABLE_INTERFACES[i].available == false) {
// setverdict(inconc, self, "******f_imsIot_receive: Interface " & PX_AVAILABLE_INTERFACES[i].interfaceName & " not available and is not evaluated******" );
// if (PX_AVAILABLE_INTERFACES[i].interfaceName == vc_interfaceName) {
// if (PX_AVAILABLE_INTERFACES[i].available == false) {
// setverdict(inconc, self, "******f_imsIot_receive: Interface " & PX_AVAILABLE_INTERFACES[i].interfaceName & " not available and is not evaluated******" );