Commit 50df9c01 authored by rennoch's avatar rennoch
Browse files

NOTIFY Request headers

parent dfa89bf8
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -1167,6 +1167,27 @@ group SetHeaders {
      
	}// end function f_setHeadersMESSAGE

	/**
		* 
		* @desc setting of general and basic Notify header fields
		* 		in additon to the addresses (To, From, ReqUri)
		* @param p_cSeq_s
		*/
	function f_setHeadersNOTIFY(inout CSeq p_cSeq_s) runs on SipComponent
	{      
			f_setHeadersGeneral(p_cSeq_s, "NOTIFY"); // cseq, contact, branch, via

			vc_callId := { fieldName:=CALL_ID_E, callid:=f_getRndCallId(p_cSeq_s) & c_AT & vc_userprofile.currIpaddr };

			vc_cancel_To := vc_to;
			vc_caller_To := vc_to;
      
			vc_caller_From := vc_from;
            
			vc_reqHostPort := vc_requestUri.hostPort;
      
	}// end function f_setHeadersNOTIFY

	/**
	 * 
	 * @desc function sets header field for the next outgoing SUBSCRIBE message