Loading AtsNIT_SipSip/ttcn/AtsNIT_SipSip_BC_TCFunctions.ttcn +195 −9 Original line number Diff line number Diff line Loading @@ -96,6 +96,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading Loading @@ -147,6 +149,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //SendBYE and await response f_terminateCall_UE( vc_requestUri, Loading Loading @@ -193,7 +197,7 @@ module AtsNIT_SipSip_BC_TCFunctions { m_MBody_SDP(vc_sdp_local) )); // await 184 response with // await 183 response with // 100rel in require header field // and a=curr and a=des lines present in sdp f_awaitingResponse(mw_Response_messageBody( Loading @@ -202,7 +206,7 @@ module AtsNIT_SipSip_BC_TCFunctions { vc_cSeq, mw_require_100rel, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -237,7 +241,7 @@ module AtsNIT_SipSip_BC_TCFunctions { f_awaitingUPDATE_sendReply(mw_UPDATE_Request_SDP( vc_callId, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -280,6 +284,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading Loading @@ -325,7 +331,7 @@ module AtsNIT_SipSip_BC_TCFunctions { f_awaitingUPDATE_sendReply(mw_UPDATE_Request_SDP( vc_callId, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -369,6 +375,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //SendBYE and await response f_terminateCall_UE( vc_requestUri, Loading Loading @@ -439,6 +447,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //SendBYE and await response f_terminateCall_UE( vc_requestUri, Loading Loading @@ -496,6 +506,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading Loading @@ -535,7 +547,7 @@ module AtsNIT_SipSip_BC_TCFunctions { m_MBody_SDP(vc_sdp_local) )); // await 184 response with // await 183 response with // 100rel in require header field // and a=curr and a=des lines present in sdp f_awaitingResponse(mw_Response_messageBody( Loading @@ -544,7 +556,7 @@ module AtsNIT_SipSip_BC_TCFunctions { vc_cSeq, mw_require_100rel, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -579,7 +591,7 @@ module AtsNIT_SipSip_BC_TCFunctions { f_awaitingUPDATE_sendReply(mw_UPDATE_Request_SDP( vc_callId, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -622,6 +634,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //SendBYE and await response f_terminateCall_UE( vc_requestUri, Loading Loading @@ -673,7 +687,7 @@ module AtsNIT_SipSip_BC_TCFunctions { f_awaitingUPDATE_sendReply(mw_UPDATE_Request_SDP( vc_callId, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -717,6 +731,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -729,6 +745,176 @@ module AtsNIT_SipSip_BC_TCFunctions { } // end group TP1_1_1_BC_Normal_Call_Esthablishment group TP1_1_2_BC_CodecNegotiation { /* * @desc This is the test case function (originating side) for AtsNIT_TC_SS___CN__01 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SS___CN__01UE1(in CSeq p_cSeq_s) runs on ImsComponent { // SDP body set to PCMA encoding var SDP_Message v_sdp := valueof(m_SDP_bandwidth(valueof(m_media_dynPT("8", "PCMA")), vc_userprofile)); f_IMS_preamble_withRegistrationBasic(c_userProfile_UE1atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // prepare and send INVITE UE2@SUT LibIms_Steps.f_setHeadersINVITE( vc_cSeq, c_userProfile_UE2atSUThome ); f_SendINVITE(m_INVITE_Request_UE( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, omit, m_MBody_SDP(v_sdp) )); // await 180 response f_awaitingResponse(mw_Response_Base( c_statusLine180, vc_callId, vc_cSeq )); // await 200 response f_awaitingOkResponse(vc_cSeq); // send ACK f_SendACK(m_ACK_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via )); LibIms_Steps.f_setHeadersReINVITE(p_cSeq_s); f_SendINVITE(m_INVITE_Request_UE( vc_requestUri, vc_callId, p_cSeq_s, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, omit, m_MBody_SDP(vc_sdp_local) )); //await 200 OK response f_awaitingResponse(mw_Response_Base( c_statusLine200, vc_callId, vc_cSeq )); // send ACK f_SendACK(m_ACK_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via )); // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SS___CN__01UE1 /* * @desc This is the test case function (terminating side) for AtsNIT_TC_SS___XX__01 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SS___CN__01UE2(in CSeq p_cSeq_s) runs on ImsComponent { f_IMS_preamble_withRegistrationBasic(c_userProfile_UE2atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // await INVITE f_awaitingINVITE(mw_INVITE_Request_Base); // send 180 response f_sendResponse(m_Response_18XonINVITE_UE( c_statusLine180, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To, vc_via, vc_contact )); // send 200 response f_sendResponse(m_Response_2xxonINVITE_UE( 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)) )); // await RE-INVITE f_awaitingINVITE(mw_INVITE_Request_Base); f_sendResponse(m_Response_2xxonINVITE_UE( 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)) )); // await ACK f_awaitingACK(mw_ACK_Request_Base(vc_callId)); // check media f_check_Conversation(); //SendBYE and await response f_terminateCall_UE( vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To ); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SS___XX__01UE2 } // end group TP1_1_2_BC_CodecNegotiation group TP1_1_3_BC_UPDATE { Loading Loading
AtsNIT_SipSip/ttcn/AtsNIT_SipSip_BC_TCFunctions.ttcn +195 −9 Original line number Diff line number Diff line Loading @@ -96,6 +96,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading Loading @@ -147,6 +149,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //SendBYE and await response f_terminateCall_UE( vc_requestUri, Loading Loading @@ -193,7 +197,7 @@ module AtsNIT_SipSip_BC_TCFunctions { m_MBody_SDP(vc_sdp_local) )); // await 184 response with // await 183 response with // 100rel in require header field // and a=curr and a=des lines present in sdp f_awaitingResponse(mw_Response_messageBody( Loading @@ -202,7 +206,7 @@ module AtsNIT_SipSip_BC_TCFunctions { vc_cSeq, mw_require_100rel, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -237,7 +241,7 @@ module AtsNIT_SipSip_BC_TCFunctions { f_awaitingUPDATE_sendReply(mw_UPDATE_Request_SDP( vc_callId, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -280,6 +284,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading Loading @@ -325,7 +331,7 @@ module AtsNIT_SipSip_BC_TCFunctions { f_awaitingUPDATE_sendReply(mw_UPDATE_Request_SDP( vc_callId, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -369,6 +375,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //SendBYE and await response f_terminateCall_UE( vc_requestUri, Loading Loading @@ -439,6 +447,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //SendBYE and await response f_terminateCall_UE( vc_requestUri, Loading Loading @@ -496,6 +506,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading Loading @@ -535,7 +547,7 @@ module AtsNIT_SipSip_BC_TCFunctions { m_MBody_SDP(vc_sdp_local) )); // await 184 response with // await 183 response with // 100rel in require header field // and a=curr and a=des lines present in sdp f_awaitingResponse(mw_Response_messageBody( Loading @@ -544,7 +556,7 @@ module AtsNIT_SipSip_BC_TCFunctions { vc_cSeq, mw_require_100rel, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -579,7 +591,7 @@ module AtsNIT_SipSip_BC_TCFunctions { f_awaitingUPDATE_sendReply(mw_UPDATE_Request_SDP( vc_callId, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -622,6 +634,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //SendBYE and await response f_terminateCall_UE( vc_requestUri, Loading Loading @@ -673,7 +687,7 @@ module AtsNIT_SipSip_BC_TCFunctions { f_awaitingUPDATE_sendReply(mw_UPDATE_Request_SDP( vc_callId, mw_MBody_SDP( mw_SDP_atribute_list(mw_ttribute_list_curr_des) mw_SDP_attribute_list(mw_attribute_list_curr_des) ) )); Loading Loading @@ -717,6 +731,8 @@ module AtsNIT_SipSip_BC_TCFunctions { // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -729,6 +745,176 @@ module AtsNIT_SipSip_BC_TCFunctions { } // end group TP1_1_1_BC_Normal_Call_Esthablishment group TP1_1_2_BC_CodecNegotiation { /* * @desc This is the test case function (originating side) for AtsNIT_TC_SS___CN__01 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SS___CN__01UE1(in CSeq p_cSeq_s) runs on ImsComponent { // SDP body set to PCMA encoding var SDP_Message v_sdp := valueof(m_SDP_bandwidth(valueof(m_media_dynPT("8", "PCMA")), vc_userprofile)); f_IMS_preamble_withRegistrationBasic(c_userProfile_UE1atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // prepare and send INVITE UE2@SUT LibIms_Steps.f_setHeadersINVITE( vc_cSeq, c_userProfile_UE2atSUThome ); f_SendINVITE(m_INVITE_Request_UE( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, omit, m_MBody_SDP(v_sdp) )); // await 180 response f_awaitingResponse(mw_Response_Base( c_statusLine180, vc_callId, vc_cSeq )); // await 200 response f_awaitingOkResponse(vc_cSeq); // send ACK f_SendACK(m_ACK_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via )); LibIms_Steps.f_setHeadersReINVITE(p_cSeq_s); f_SendINVITE(m_INVITE_Request_UE( vc_requestUri, vc_callId, p_cSeq_s, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, omit, m_MBody_SDP(vc_sdp_local) )); //await 200 OK response f_awaitingResponse(mw_Response_Base( c_statusLine200, vc_callId, vc_cSeq )); // send ACK f_SendACK(m_ACK_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via )); // check media f_check_Conversation(); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SS___CN__01UE1 /* * @desc This is the test case function (terminating side) for AtsNIT_TC_SS___XX__01 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SS___CN__01UE2(in CSeq p_cSeq_s) runs on ImsComponent { f_IMS_preamble_withRegistrationBasic(c_userProfile_UE2atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // await INVITE f_awaitingINVITE(mw_INVITE_Request_Base); // send 180 response f_sendResponse(m_Response_18XonINVITE_UE( c_statusLine180, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To, vc_via, vc_contact )); // send 200 response f_sendResponse(m_Response_2xxonINVITE_UE( 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)) )); // await RE-INVITE f_awaitingINVITE(mw_INVITE_Request_Base); f_sendResponse(m_Response_2xxonINVITE_UE( 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)) )); // await ACK f_awaitingACK(mw_ACK_Request_Base(vc_callId)); // check media f_check_Conversation(); //SendBYE and await response f_terminateCall_UE( vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To ); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SS___XX__01UE2 } // end group TP1_1_2_BC_CodecNegotiation group TP1_1_3_BC_UPDATE { Loading