Commit 3f539de7 authored by pintar's avatar pintar
Browse files

functions for sending and receiving of INFO method are done

parent 7b799491
Loading
Loading
Loading
Loading
+34 −3
Original line number Diff line number Diff line
@@ -2309,6 +2309,27 @@ group AwaitingMessage {
		  }
		} //end f_awaitingResponsePassOnTimeout
	
	/** 
	*  @desc await INFO request
	*		 reply with 200 OK
	*/
	function f_awaitingINFO_sendReply(in template INFO_Request p_MSG) runs on SipComponent
	{
		var INFO_Request	v_MSG;
      
		tc_resp.start(PX_SIP_TRESP);
		alt
		{
		  [] SIPP.receive(p_MSG)-> value v_MSG sender vc_sent_label
			{
			  tc_resp.stop;
			  f_setHeadersOnReceiptOfRequest(v_MSG);
			  //Answer to the INFO
			  f_send200OK();
			}
		}
	} // end of f_awaitingINFO_sendReply
	
	/**
	 * 
	 * @desc function awaiting for an incoming INVITE
@@ -2330,7 +2351,7 @@ group AwaitingMessage {
			SIPP.send(m_Response_Base(c_statusLine100, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)) to vc_sent_label;
		  }
	  }
	} //end f_awaitingInviteRequest
	} //end f_awaitingINVITE

	/**
		* 
@@ -2737,6 +2758,17 @@ group SendMessage {
		SIPP.send(p_request) to vc_sent_label;	  
	}
		
	/**
	* 
	* @desc  send INFO message
	* @param p_request template of the message to be sent
	*/	
	function f_SendINFO(template INFO_Request p_request) runs on SipComponent
	{
		f_setHeadersGeneral(vc_cSeq, "INFO"); // cseq, contact, branch, via
		SIPP.send(p_request) to vc_sent_label;
	}
	
	/**
	* 
	* @desc  send INVITE message
@@ -2822,7 +2854,6 @@ group SendMessage {
		SIPP.send(p_request) to vc_sent_label;	  
	}
			
		
	/**
	* 
	* @desc  send REFER message