Commit 97e75461 authored by saiu's avatar saiu
Browse files

added function f_setHeadersSUBSCRIBE

parent d67da831
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -143,6 +143,34 @@ module LibIms_Steps
	  
		}// end f_setHeadersNOTIFY
		
		/*
			* 
			* @desc setting of Subscribe header fields (IMS addresses)
			*			extension of general settings from LibSip basic function
			* @param p_cSeq_s current cSeq 
			* @param p_to_user user_profile id of the user to be invited
			* @verdict 
			*/
		function f_setHeadersSUBSCRIBE(inout CSeq p_cSeq_s, in SipUrl p_to_user) runs on ImsComponent
		{      
    			vc_to := {	fieldName := TO_E,
        			addressField :=
        			{
        				nameAddr := {
        					displayName := omit, 	 			// optional charstring
        					addrSpec :=	p_to_user	// SipUrl
        				}
        			},//end addressField
        			toParams := omit
    			};
				vc_from := f_initFromHeader(vc_userprofile.id, f_getRndTag()); // init of vc_from using userProfile identifier
        
				vc_requestUri :=p_to_user; // Request URI of Invite is identical with To header
  
				LibSip_Steps.f_setHeadersSUBSCRIBE(p_cSeq_s);
	  
		}// end f_setHeadersSUBSCRIBE
		
		function f_setHeadersReINVITE (inout CSeq p_cSeq_s) runs on ImsComponent
		{
		  f_setHeadersGeneral(p_cSeq_s, "INVITE"); // cseq, contact, branch, via