Commit d740b503 authored by rennoch's avatar rennoch
Browse files

test 606003-606007

parent f5ab5c40
Loading
Loading
Loading
Loading
+239 −7
Original line number Diff line number Diff line
@@ -9859,7 +9859,7 @@ module SipIsup_IMS_TCFunctions {
							m_Require_prec, 
							vc_route, 
							vc_recordRoute, 
							m_PAssertedID_2x(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted), m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted2) ), //sip and tel PAsserted
							m_PAssertedID_2x(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted), m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted) ), //sip and tel PAsserted
							omit, //Privacy
							omit, //Supported
							omit, //ChargingVector
@@ -11739,7 +11739,26 @@ module SipIsup_IMS_TCFunctions {
				*/
				function f_IMS_TC_606_002(in CSeq p_cSeq_s) runs on ImsComponent {
				
				f_IMS_TC_606_001(p_cSeq_s)
                 // PREAMBLE
                 // IMS component interface initialization
                 f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable
            
                 f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());// sync point preamble done
                 // TESTBODY
            
                 //Awaiting INVITE	
                 f_awaitingINVITE(mw_INVITE_Request_supported(mw_Supported_fromChange));
                 f_sendResponse(m_Response_18XonINVITE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact));
                 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();
                 //await BYE and send 200 OK
                 f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));
            
                 f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());// sync point test body done
            
                 // POSTAMBLE
                 f_SIP_postamble_IMS1_withoutRegistration ()
					
				}// end function f_IMS_TC_606_002

@@ -11761,16 +11780,17 @@ module SipIsup_IMS_TCFunctions {
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));
					v_InviteReq:=vc_request;
					
					// the following is implemented without privacy header
					select(PX_SIP_MESSAGE_VA) {           
						case(1){f_sendResponse(m_Response_18XonINVITE_pAsserted_UE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted))));}
						case(2){f_sendResponse(m_Response_18XonINVITE_pAsserted_UE(c_statusLine183,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted))));}
						case(1){f_sendResponse(m_Response_18XonINVITE_pAsserted_UE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted))));}
						case(2){f_sendResponse(m_Response_18XonINVITE_pAsserted_UE(c_statusLine183,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted))));}
						case(3){setverdict(pass);} // see below for Response_200
						case else {log("Invalid PX_SIP_MESSAGE_VA variant (",PX_SIP_MESSAGE_VA,"), available variant 1-3");}
					}
					
					f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point
				
					f_sendResponse(m_Response_2XXonINVITE_pAsserted_UE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)),f_route(),valueof(m_MBody_SDP(vc_sdp_local))));
					f_sendResponse(m_Response_2XXonINVITE_pAsserted_UE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted)),f_route(),valueof(m_MBody_SDP(vc_sdp_local))));
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));

					f_check_Conversation();
@@ -11784,6 +11804,218 @@ module SipIsup_IMS_TCFunctions {
						
				}// end function f_IMS_TC_606_003
				
				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_606_004
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_606_004(in CSeq p_cSeq_s) runs on ImsComponent {
					
					var INVITE_Request v_InviteReq;
					// PREAMBLE
					// IMS component interface initialization
					//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());// sync point preamble done
					// TESTBODY
					//Awaiting INVITE	
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));
					v_InviteReq:=vc_request;
					
					// the following is implemented without privacy header
					select(PX_SIP_MESSAGE_VA) {           
						case(1){f_sendResponse(m_Response_18XonINVITE_pAsserted_UE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted_otherCC))));}
						case(2){f_sendResponse(m_Response_18XonINVITE_pAsserted_UE(c_statusLine183,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted_otherCC))));}
						case(3){setverdict(pass);} // see below for Response_200
						case else {log("Invalid PX_SIP_MESSAGE_VA variant (",PX_SIP_MESSAGE_VA,"), available variant 1-3");}
					}
					
					f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point
				
					f_sendResponse(m_Response_2XXonINVITE_pAsserted_UE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted_otherCC)),f_route(),valueof(m_MBody_SDP(vc_sdp_local))));
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));

					f_check_Conversation();
					//await BYE and send 200 OK
					f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));

					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());// sync point test body done

					// POSTAMBLE
					f_SIP_postamble_IMS1_withoutRegistration ()
						
				}// end function f_IMS_TC_606_004

				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_606_005
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_606_005(in CSeq p_cSeq_s) runs on ImsComponent {
					
					var INVITE_Request v_InviteReq;
					// PREAMBLE
					// IMS component interface initialization
					//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());// sync point preamble done
					// TESTBODY
					//Awaiting INVITE	
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));
					v_InviteReq:=vc_request;
					
					// the following is implemented without privacy header
					select(PX_SIP_MESSAGE_VA) {           
						case(1){f_sendResponse(m_Response_18XonINVITE_UE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact));}
						case(2){f_sendResponse(m_Response_18XonINVITE_UE(c_statusLine183,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact));}
						case(3){setverdict(pass);} // see below for Response_200
						case else {log("Invalid PX_SIP_MESSAGE_VA variant (",PX_SIP_MESSAGE_VA,"), available variant 1-3");}
					}
					
					f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point
				
					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))));
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));

					f_check_Conversation();
					//await BYE and send 200 OK
					f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));

					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());// sync point test body done

					// POSTAMBLE
					f_SIP_postamble_IMS1_withoutRegistration ()
						
				}// end function f_IMS_TC_606_005

				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_606_006
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_606_006(in CSeq p_cSeq_s) runs on ImsComponent {
					
					var INVITE_Request v_InviteReq;
					// PREAMBLE
					// IMS component interface initialization
					//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());// sync point preamble done
					// TESTBODY
					//Awaiting INVITE	
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));
					v_InviteReq:=vc_request;
					
					// the following is implemented without privacy header
					select(PX_SIP_MESSAGE_VA) {           
						case(1){f_sendResponse(m_Response_18XonINVITE_pAsserted_privacy_UE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted)),m_Privacy(PX_SIP_privacy)));}
						case(2){f_sendResponse(m_Response_18XonINVITE_pAsserted_privacy_UE(c_statusLine183,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted)),m_Privacy(PX_SIP_privacy)));}
						case(3){setverdict(pass);} // see below for Response_200
						case else {log("Invalid PX_SIP_MESSAGE_VA variant (",PX_SIP_MESSAGE_VA,"), available variant 1-3");}
					}
					
					f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point
				
					f_sendResponse(m_Response_2XXonINVITE_pAsserted_privacy_UE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted)),m_Privacy(PX_SIP_privacy),f_route(),valueof(m_MBody_SDP(vc_sdp_local))));
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));

					f_check_Conversation();
					//await BYE and send 200 OK
					f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));

					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());// sync point test body done

					// POSTAMBLE
					f_SIP_postamble_IMS1_withoutRegistration ()
						
				}// end function f_IMS_TC_606_006
				
				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_606_007
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_606_007(in CSeq p_cSeq_s) runs on ImsComponent {
					
					var INVITE_Request v_InviteReq;
					// PREAMBLE
					// IMS component interface initialization
					//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());// sync point preamble done
					// TESTBODY
					//Awaiting INVITE	
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));
					v_InviteReq:=vc_request;
					
					// the following is implemented without privacy header
					select(PX_SIP_MESSAGE_VA) {           
						case(1){f_sendResponse(m_Response_18XonINVITE_pAsserted_privacy_UE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted_otherCC)),m_Privacy(PX_SIP_privacy)));}
						case(2){f_sendResponse(m_Response_18XonINVITE_pAsserted_privacy_UE(c_statusLine183,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted_otherCC)),m_Privacy(PX_SIP_privacy)));}
						case(3){setverdict(pass);} // see below for Response_200
						case else {log("Invalid PX_SIP_MESSAGE_VA variant (",PX_SIP_MESSAGE_VA,"), available variant 1-3");}
					}
					
					f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point
				
					f_sendResponse(m_Response_2XXonINVITE_pAsserted_privacy_UE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddrTel_PAsserted_otherCC)),m_Privacy(PX_SIP_privacy),f_route(),valueof(m_MBody_SDP(vc_sdp_local))));
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));

					f_check_Conversation();
					//await BYE and send 200 OK
					f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));

					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());// sync point test body done

					// POSTAMBLE
					f_SIP_postamble_IMS1_withoutRegistration ()
						
				}// end function f_IMS_TC_606_007
				
				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_606_008
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_606_008(in CSeq p_cSeq_s) runs on ImsComponent {
					
					var INVITE_Request v_InviteReq;
					// PREAMBLE
					// IMS component interface initialization
					//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());// sync point preamble done
					// TESTBODY
					//Awaiting INVITE	
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));
					v_InviteReq:=vc_request;
					
					// the following is implemented without privacy header
					select(PX_SIP_MESSAGE_VA) {           
						case(1){f_sendResponse(m_Response_18XonINVITE_supported_privacy_UE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact, m_Supported_fromChange,m_Privacy(PX_SIP_privacy)));}
						case(2){f_sendResponse(m_Response_18XonINVITE_supported_privacy_UE(c_statusLine183,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact, m_Supported_fromChange, m_Privacy(PX_SIP_privacy)));}
						case(3){setverdict(pass);} // see below for Response_200
						case else {log("Invalid PX_SIP_MESSAGE_VA variant (",PX_SIP_MESSAGE_VA,"), available variant 1-3");}
					}
					
					f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point
				
					f_sendResponse(m_Response_2XXonINVITE_supported_privacy_UE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact, m_Supported_fromChange ,m_Privacy(PX_SIP_privacy),f_route(),valueof(m_MBody_SDP(vc_sdp_local))));
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));

					f_check_Conversation();
					//await BYE and send 200 OK
					f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));

					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());// sync point test body done

					// POSTAMBLE
					f_SIP_postamble_IMS1_withoutRegistration ()
						
				}// end function f_IMS_TC_606_00
				

				
			} // end group TP606_COL

			group TP607_SUB {		
+22 −5
Original line number Diff line number Diff line
@@ -117,6 +117,10 @@ module SipIsup_PIXITS {
	*/
	float        PX_Timeout_Tiw3 := 4.0;
	
	/** @desc	charstring  privacy value used for TC606006-606008
	*/
	PrivacyValue PX_SIP_privacy := "user";
	
    /** @desc	NameAddr default value for From field 
     ** @remark	PICS/PIXIT Reference:	ETS TS186 009-3, Table A1, item 1.14
     * 			Used in groupe 501
@@ -141,11 +145,11 @@ module SipIsup_PIXITS {
                                                    urlParameters := omit,
                                                    headers := omit}
										}
    /** @desc	NameAddr default value for PAsserted2 (with tel scheme) field 
     * 			used in groupe 501 
     ** @remark	PICS/PIXIT Reference:	ETS TS186 009-3, Table A1, item 1.16
    /** @desc	NameAddr default value for PX_SIP_NameAddrTel_PAsserted(with tel scheme) field 
     * 			used in groupe 501 and 606
     * 			Note: CC should NOT equal to CC of the country where MGCF is located (606003)
	*/
	NameAddr	PX_SIP_NameAddr_PAsserted2 := {displayName := omit, 	 			// optional charstring
	NameAddr	PX_SIP_NameAddrTel_PAsserted := {displayName := omit, 	 			// optional charstring
										addrSpec :=	{	  
													scheme := c_telScheme,  			// contains "tel"
													userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit},
@@ -153,6 +157,19 @@ module SipIsup_PIXITS {
													urlParameters := omit,
													headers := omit}
										}
	
	/** @desc	NameAddr default value for PX_SIP_NameAddrTel_PAsserted_otherCC(with tel scheme) field 
	* 			used in groupe 501 and 606
	* 		Note: CC should NOT equal to CC of the country where MGCF is located (606004)
	*/
NameAddr	PX_SIP_NameAddrTel_PAsserted_otherCC := {displayName := omit, 	 			// optional charstring
									addrSpec :=	{	  
												scheme := c_telScheme,  			// contains "tel"
												userInfo := {userOrTelephoneSubscriber:= "+331234567", password:=omit},
												hostPort := omit,
												urlParameters := omit,
												headers := omit}
									}
}

}// end module SipIsup_PIXITS
 No newline at end of file