Commit 59622bfa authored by juvancic's avatar juvancic
Browse files

added REFER ims template

parent a64e0ce8
Loading
Loading
Loading
Loading
+27 −2
Original line number Diff line number Diff line
@@ -1554,13 +1554,38 @@ group request_send {
			contentLength	:= {fieldName := CONTENT_LENGTH_E, len:= f_MessageBodyLength(valueof(p_mb))},
			contentType := {fieldName := CONTENT_TYPE_E, mediaType :=  c_xmlAplication},
			event := {fieldName:=EVENT_E, eventType:="conference",eventParams:=omit},
			subscriptionState:={fieldName:=SUBSCRIPTION_STATE_E, subState:="active",substateParams:=omit},
			expires:={fieldName:=EXPIRES_E, deltaSec:="3600"}
			subscriptionState:={fieldName:=SUBSCRIPTION_STATE_E, subState:="active",substateParams:=omit}//,
			//expires:={fieldName:=EXPIRES_E, deltaSec:="3600"}
			
		},
		messageBody := p_mb
	}
	
	/*
		* 
		* @desc REFER message exchanged at Mw
		*
		*/	
	template REFER_Request m_REFER_Request_IMS
	(SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq, Contact p_contact, From p_from, To p_to,
			Via p_via,  template ReferTo p_referTo, template ReferredBy p_referredBy, template Require p_require,
	template Route p_route, template RecordRoute p_recordRoute,  template Supported p_supported, template PChargingVector p_pChargingVector, template MessageBody p_mb )
	modifies m_REFER_Request_Base
	:=
	{
			msgHeader :=
			{
		contentLength	:= {fieldName := CONTENT_LENGTH_E, len:= f_MessageBodyLength(valueof(p_mb))},
		contentType := {fieldName := CONTENT_TYPE_E, mediaType :=  c_sdpAplication},
		require := p_require,
		pChargingVector := p_pChargingVector,
		recordRoute := p_recordRoute,
		route := p_route,
		supported := p_supported
			},
			messageBody := p_mb
	}
		
	template REGISTER_Request m_REGISTER_Request_UE (SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq,
		From p_from, To p_to, Via p_via, Contact p_contact, template Authorization p_authorization,
		template ProxyRequire p_proxyRequire, template Require p_require,