Loading AtsCommon/SipIsup_IMS_TCFunctions.ttcn +46 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ module SipIsup_IMS_TCFunctions { * @desc This is the test case function (SIP side) for TC_101_001 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_101_001(in CSeq p_cSeq_s) runs on SipComponent { function f_IMS_TC_101_001(in CSeq p_cSeq_s) runs on ImsComponent { //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_woRegistration(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable Loading @@ -69,6 +69,51 @@ module SipIsup_IMS_TCFunctions { f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_101_001 /* * @desc This is the test case function (SIP side) for TC_101_002 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_101_002(in CSeq p_cSeq_s) runs on ImsComponent { var SDP_attribute_list v_attribute_list := valueof({ m_attribute_PCMU, m_attribute_curr(c_qos, c_local, c_sendrecv), m_attribute_curr(c_qos, c_remote, c_none), m_attribute_des(c_qos, c_mandatory, c_local, c_sendrecv), m_attribute_des(c_qos, c_none, c_remote, c_sendrecv) }); //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_woRegistration(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // INVITE UE1 vc_sdp_local := valueof(m_SDP_media_attr_preconditions(valueof(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding)), vc_userprofile, v_attribute_list)); LibIms_Steps.f_setHeadersINVITE(p_cSeq_s, c_userProfile_ISUP); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, p_cSeq_s, vc_from, vc_to, vc_via, vc_contact, omit, omit, m_Supported_100rel_prec, omit, m_MBody_SDP(vc_sdp_local))); f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq)); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); if (not(f_check_attribute(vc_sdp_remote, m_attribute_curr(c_qos, c_local, c_sendrecv)) and f_check_attribute(vc_sdp_remote, m_attribute_curr(c_qos, c_remote, c_sendrecv)) and f_check_attribute(vc_sdp_remote, m_attribute_des(c_qos, c_mandatory, c_local, c_sendrecv)) and f_check_attribute(vc_sdp_remote, m_attribute_des(c_qos, c_mandatory, c_remote, c_sendrecv)) ) ) {setverdict(fail); log("FAIL: Attribute in 200 OK INVITE does not match");} f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //Send BYE and awaiting response f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To); f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_101_002 } // end group TP101_SendingIAM group TP102_Sending_SAM { Loading Loading
AtsCommon/SipIsup_IMS_TCFunctions.ttcn +46 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ module SipIsup_IMS_TCFunctions { * @desc This is the test case function (SIP side) for TC_101_001 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_101_001(in CSeq p_cSeq_s) runs on SipComponent { function f_IMS_TC_101_001(in CSeq p_cSeq_s) runs on ImsComponent { //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_woRegistration(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable Loading @@ -69,6 +69,51 @@ module SipIsup_IMS_TCFunctions { f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_101_001 /* * @desc This is the test case function (SIP side) for TC_101_002 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_101_002(in CSeq p_cSeq_s) runs on ImsComponent { var SDP_attribute_list v_attribute_list := valueof({ m_attribute_PCMU, m_attribute_curr(c_qos, c_local, c_sendrecv), m_attribute_curr(c_qos, c_remote, c_none), m_attribute_des(c_qos, c_mandatory, c_local, c_sendrecv), m_attribute_des(c_qos, c_none, c_remote, c_sendrecv) }); //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_woRegistration(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // INVITE UE1 vc_sdp_local := valueof(m_SDP_media_attr_preconditions(valueof(m_media_dynPT(PX_SIP_SDP_dyn, PX_SIP_SDP_encoding)), vc_userprofile, v_attribute_list)); LibIms_Steps.f_setHeadersINVITE(p_cSeq_s, c_userProfile_ISUP); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, p_cSeq_s, vc_from, vc_to, vc_via, vc_contact, omit, omit, m_Supported_100rel_prec, omit, m_MBody_SDP(vc_sdp_local))); f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq)); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); if (not(f_check_attribute(vc_sdp_remote, m_attribute_curr(c_qos, c_local, c_sendrecv)) and f_check_attribute(vc_sdp_remote, m_attribute_curr(c_qos, c_remote, c_sendrecv)) and f_check_attribute(vc_sdp_remote, m_attribute_des(c_qos, c_mandatory, c_local, c_sendrecv)) and f_check_attribute(vc_sdp_remote, m_attribute_des(c_qos, c_mandatory, c_remote, c_sendrecv)) ) ) {setverdict(fail); log("FAIL: Attribute in 200 OK INVITE does not match");} f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //Send BYE and awaiting response f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To); f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_101_002 } // end group TP101_SendingIAM group TP102_Sending_SAM { Loading