Commit 046d0314 authored by pintar's avatar pintar
Browse files

templates for MCID and ACR

parent d7a41ea5
Loading
Loading
Loading
Loading
+126 −5
Original line number Diff line number Diff line
@@ -346,6 +346,16 @@ group MessageBodyTemplates {
	
group XMLTemplates {
	
	template XmlBody m_XmlBody_ACR_ICB(template Incoming_communication_barring p_icb) :=
	{
		icb := p_icb
	};
	
	template XmlBody m_XmlBody_ACR_OCB(template Outgoing_communication_barring p_ocb) :=
	{
		ocb := p_ocb
	};
	
	template XmlBody m_XmlBody_ConfInfo(template Conference_info p_confInfo) :=
	{
		conferenceInfo := p_confInfo
@@ -356,6 +366,11 @@ group XMLTemplates {
		cug := p_cug
	};
	
	template XmlBody m_XmlBody_MCID(template Mcid p_mcid) :=
	{
		mcid := p_mcid
	};
	
	template XmlBody m_XmlBody_PSTNTransit(template PSTN_transit p_pstn) :=
	{
		pstnTransit := p_pstn
@@ -376,6 +391,11 @@ group XMLTemplates {
		cug := p_cug
	};
	
	template XmlBody mw_XmlBody_MCID(template Mcid p_mcid) :=
	{
		mcid := p_mcid
	};
	
	template XmlBody mw_XmlBody_PSTNTransit(template PSTN_transit p_pstn) :=
	{
		pstnTransit := p_pstn
@@ -388,6 +408,49 @@ group XMLTemplates {
		
}// end group XMLTemplates

group ACR_CBTemplates {
	
	template Incoming_communication_barring	m_ICB(RuleType p_ruleType) :=
	{
		ruleset_icb := {
			rule:= {p_ruleType}
		}
	}
	
	template Outgoing_communication_barring	m_OCB(RuleType p_ruleType) :=
	{
		ruleset_ocb := {
			rule:= {p_ruleType}
		}
	}
	
	template RuleType m_ruleType_actionFalse(template ConditionsType p_condition) :=
	{
		id := "rule66",
		conditions := p_condition,
		actions := {bool := false},
		transformations := omit
	}

	template ConditionsType m_conditionsType_identity(template charstring p_id, template charstring p_scheme) := {
		choice := {{
			identity := {{
				choice := {{
            		one := {
            			id := p_id,
            			scheme := p_scheme,
            			any_1 := omit
            		}
				}}
			}}
		}}
	}
		
	
	
	
} //end group ACR_CBTemplates

group CUGTemplates {
	
	template Cug m_CUG (template CugRequestType p_crt,
@@ -423,8 +486,44 @@ group CUGTemplates {
		outgoingAccessRequest := p_outAccessRequest,
		cugIndex := p_cugIndex
	}
}//end group CUGTemplates

group MCIDTemplates {
	
 template Mcid m_mcid_request_mcidIndicatorTrue :=
 {
  choice := {
   request := {McidRequestIndicator := bit2str('1'B),
      HoldingIndicator := bit2str('0'B)}
  }
 }
	
 template Mcid m_mcid_response_mcidIndicatorTrue :=
 {
  choice := {
   response := {McidResponseIndicator := bit2str('1'B),
       HoldingProvidedIndicator := bit2str('0'B)}
  }
 }
	
 template Mcid mw_mcid_request_mcidIndicatorTrue :=
 {
  choice := {
   request := {McidRequestIndicator := bit2str('1'B),
      HoldingIndicator := *}
  }
 }
	
 template Mcid mw_mcid_response_mcidIndicatorTrue :=
 {
  choice := {
   response := {McidResponseIndicator := bit2str('1'B),
       HoldingProvidedIndicator := *}
  }
 }

} //end group MCIDTemplates

group PSTNTemplates {
	
	template PSTN_transit m_PSTN_transit(template BearerCapabilityType p_bct,
@@ -805,6 +904,28 @@ group request_send {
		}
	}		
	
	/*
	* 
	* @desc INVITE message exchanged at Mw
	*
	*/	
	template INVITE_Request m_INVITE_Request_Mime_PAsserted_Privacy_IMS
	(SipUrl p_requestUri, CallId p_callId, CSeq p_cSeq, From p_from, To p_to,
			Via p_via, Contact p_contact, template Require p_require,
			template Route p_route, template RecordRoute p_recordRoute,  template Supported p_supported, template PChargingVector p_pChargingVector, template MessageBody p_mb,
			template PAssertedID p_pAssertedID, template Privacy p_privacy )
	modifies m_INVITE_Request_IMS
	:=
	{
		msgHeader :=
		{
			contentLength	:= {fieldName := CONTENT_LENGTH_E, len:= f_MessageBodyLength(valueof(p_mb))},
			contentType := {fieldName := CONTENT_TYPE_E, mediaType :=  c_mimeMultipart},
			pAssertedID := p_pAssertedID,
			privacy := p_privacy
		}
	}
	
	/*
	* 
	* @desc INVITE message exchanged at Mw