Commit 2716d8a2 authored by poglitsch's avatar poglitsch
Browse files

f_setHeadersREFER_conf added

parent e12e1bd6
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
@@ -261,6 +261,39 @@ module LibIms_Steps
		  
		}// end f_setHeadersREFER
		
	    /*
	     * @desc setting of REFER header fields (IMS addresses)
		 *			extension of general settings from LibSip basic function
		 * @param p_cSeq_s current cSeq 
		 * @param p_uri SipUrl for request URI and To header
		 */
		function f_setHeadersREFER_conf(inout CSeq p_cSeq_s, in SipUrl p_uri) runs on ImsComponent
		{      
		  vc_to := {	
		  	fieldName := TO_E,
			addressField := {
				nameAddr := {
					displayName := omit, 	 			// optional charstring
					addrSpec :=	p_uri					// SipUrl
				}
			},//end addressField
			toParams := omit
		  };

		  vc_from := f_initFromHeader(vc_userprofile.id, f_getRndTag()); // init of vc_from using userProfile identifier
            
		  vc_requestUri := p_uri; // Request URI of Invite is identical with To header
      
		  if (vc_boo_route) { 
		  	vc_route := valueof(m_route_interface(vc_interfaceprofile))
		  };
		  if (vc_boo_recordRoute) { 
		  	vc_recordRoute := valueof(m_recordRoute_currIpAddr(vc_userprofile))
		  };
		  
		  LibSip_Steps.f_setHeadersREFER(p_cSeq_s);
		}// end f_setHeadersREFER_conf

	} // end group fieldOperations
	
	group awaitingMessage {