Loading AtsCommon/SipIsup_IMS_TCFunctions.ttcn +112 −0 Original line number Diff line number Diff line Loading @@ -10500,6 +10500,118 @@ module SipIsup_IMS_TCFunctions { } // end group TP504_CONF group TP505_3PTY { /* @desc This is the test case function (SIP side) for TC_505_001 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_505_001(in CSeq p_cSeq_s) runs on ImsComponent { //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // INVITE UE1 LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, omit, m_MBody_SDP(vc_sdp_local))); f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq)); f_check_Ringing(); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_check_Conversation(); //Awaiting reINVITE, reply 200 f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*)); f_SIP_checksetSDPreqDirection(mw_attribute_sendonly,mw_attribute_recvonly); // handling of attribute in media description f_sendResponse(m_Response_2xxonINVITE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route(),valueof(m_MBody_SDP(vc_sdp_local)))); f_awaitingACK(mw_ACK_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point 1 //Awaiting reINVITE, reply 200 f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*)); f_SIP_checksetSDPreqDirection(mw_attribute_sendrecv_recvonly_omit,omit); // handling of attribute in media description f_sendResponse(m_Response_2xxonINVITE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route(),valueof(m_MBody_SDP(vc_sdp_local)))); f_awaitingACK(mw_ACK_Request_Base(vc_callId)); f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_sync2, f_getVerdict());// sync point 2 f_check_Conversation(); //Send BYE and awaiting response f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_505_001 /* * @desc This is the test case function (SIP side) for TC_505_002 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_505_002(in CSeq p_cSeq_s) runs on ImsComponent { f_IMS_TC_504_001(p_cSeq_s); } // end function f_IMS_TC_505_002 /* * @desc This is the test case function (SIP side) for TC_505_003 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_505_003(in CSeq p_cSeq_s) runs on ImsComponent { //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // INVITE UE1 LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, 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)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point 1 f_SIP_modSessionDirection(m_attribute_sendonly); // handling of attribute in session LibIms_Steps.f_setHeadersReINVITE_(vc_cSeq); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, m_Supported_prec, omit, m_MBody_SDP(vc_sdp_local))); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_SIP_checkSDPrespDirection(mw_attribute_recvonly); /*comented out, check at validation f_SIP_modSessionDirection(m_attribute_sendrecv); // handling of attribute in session LibIms_Steps.f_setHeadersReINVITE_(vc_cSeq); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, m_Supported_prec, omit, m_MBody_SDP(vc_sdp_local))); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_SIP_checkSDPrespDirection(mw_attribute_sendrecv);*/ LibIms_Steps.f_setHeadersNOTIFY(vc_cSeq, c_userProfile_ISUP); /**TODO: Prepare ConferenceXML body for NOTIFY * */ f_SendNOTIFY(m_NOTIFY_Request_Xml_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via,omit)); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_selfOrClientSyncAndVerdict(c_sync2, f_getVerdict());// sync point 2 //Send BYE and awaiting response f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_505_003 } // end group TP505_3PTY group TP506_COLP { Loading Loading
AtsCommon/SipIsup_IMS_TCFunctions.ttcn +112 −0 Original line number Diff line number Diff line Loading @@ -10500,6 +10500,118 @@ module SipIsup_IMS_TCFunctions { } // end group TP504_CONF group TP505_3PTY { /* @desc This is the test case function (SIP side) for TC_505_001 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_505_001(in CSeq p_cSeq_s) runs on ImsComponent { //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // INVITE UE1 LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, omit, m_MBody_SDP(vc_sdp_local))); f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq)); f_check_Ringing(); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_check_Conversation(); //Awaiting reINVITE, reply 200 f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*)); f_SIP_checksetSDPreqDirection(mw_attribute_sendonly,mw_attribute_recvonly); // handling of attribute in media description f_sendResponse(m_Response_2xxonINVITE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route(),valueof(m_MBody_SDP(vc_sdp_local)))); f_awaitingACK(mw_ACK_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point 1 //Awaiting reINVITE, reply 200 f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*)); f_SIP_checksetSDPreqDirection(mw_attribute_sendrecv_recvonly_omit,omit); // handling of attribute in media description f_sendResponse(m_Response_2xxonINVITE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route(),valueof(m_MBody_SDP(vc_sdp_local)))); f_awaitingACK(mw_ACK_Request_Base(vc_callId)); f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_sync2, f_getVerdict());// sync point 2 f_check_Conversation(); //Send BYE and awaiting response f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_505_001 /* * @desc This is the test case function (SIP side) for TC_505_002 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_505_002(in CSeq p_cSeq_s) runs on ImsComponent { f_IMS_TC_504_001(p_cSeq_s); } // end function f_IMS_TC_505_002 /* * @desc This is the test case function (SIP side) for TC_505_003 * @param p_CSeq_s Transaction Id */ function f_IMS_TC_505_003(in CSeq p_cSeq_s) runs on ImsComponent { //c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // INVITE UE1 LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, 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)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point 1 f_SIP_modSessionDirection(m_attribute_sendonly); // handling of attribute in session LibIms_Steps.f_setHeadersReINVITE_(vc_cSeq); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, m_Supported_prec, omit, m_MBody_SDP(vc_sdp_local))); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_SIP_checkSDPrespDirection(mw_attribute_recvonly); /*comented out, check at validation f_SIP_modSessionDirection(m_attribute_sendrecv); // handling of attribute in session LibIms_Steps.f_setHeadersReINVITE_(vc_cSeq); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, m_Supported_prec, omit, m_MBody_SDP(vc_sdp_local))); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_SIP_checkSDPrespDirection(mw_attribute_sendrecv);*/ LibIms_Steps.f_setHeadersNOTIFY(vc_cSeq, c_userProfile_ISUP); /**TODO: Prepare ConferenceXML body for NOTIFY * */ f_SendNOTIFY(m_NOTIFY_Request_Xml_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via,omit)); f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_selfOrClientSyncAndVerdict(c_sync2, f_getVerdict());// sync point 2 //Send BYE and awaiting response f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); f_SIP_postamble_IMS1_withoutRegistration(); } // end function f_IMS_TC_505_003 } // end group TP505_3PTY group TP506_COLP { Loading