Commit cb16764b authored by pintar's avatar pintar
Browse files

Ringing and conversation function

parent 5f246a17
Loading
Loading
Loading
Loading
+18 −3
Original line number Diff line number Diff line
@@ -58,14 +58,19 @@ module SipIsup_IMS_TCFunctions {
					
					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_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
					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_101_001
				
@@ -95,6 +100,8 @@ module SipIsup_IMS_TCFunctions {
					
					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)); 
					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
@@ -107,10 +114,13 @@ module SipIsup_IMS_TCFunctions {
					
					f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via));		
					
					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
					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_101_002
				
@@ -140,14 +150,19 @@ module SipIsup_IMS_TCFunctions {
					
					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_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
					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_101_003