Commit dfa89bf8 authored by poglitsch's avatar poglitsch
Browse files

IM CN Subsystem XML Types and Templates added

parent 08ab5ecb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -75,6 +75,9 @@ group SimpleConstants
	  // MIME name application
	  const charstring c_mimeMultipart := "multipart/mixed";
	  
	  // IMS 3GPP name application
	  const charstring c_ims3gppAplication := "application/3gpp-ims+xml";
      
	  // OCTET-STREAM name application
	  const charstring c_octetAplication := "application/octet-stream";
	  
+64 −3
Original line number Diff line number Diff line
@@ -333,7 +333,6 @@ module LibSip_Templates


	group HeaderFieldTemplates {
		
		template Allow m_Allow (template Method_List p_methods) := {
			fieldName := ALLOW_E,
			methods := p_methods
@@ -802,6 +801,16 @@ module LibSip_Templates
			}
		  } 
		}
		
		template AlertInfo m_AlertInfo(charstring p_urn) := {
			fieldName := ALERT_INFO_E,
			alertInfoBody := {{p_urn, omit}}
		}
		
		template AlertInfo mw_AlertInfo(template charstring p_urn) := {
			fieldName := ALERT_INFO_E,
			alertInfoBody := superset({p_urn, omit})
		}
	} //*  end of group HeaderFieldTemplates


@@ -1925,7 +1934,7 @@ group request_receive {
		msgHeader := {callId := p_callid}
	  }
	
	template INVITE_Request mw_INVITE_Request_MB (CallId p_callId, template MessageBody p_mb) modifies mw_INVITE_Request_Base :=
	template INVITE_Request mw_INVITE_Request_MB (template CallId p_callId, template MessageBody p_mb) modifies mw_INVITE_Request_Base :=
	{
		msgHeader := {callId := p_callId},
		messageBody := p_mb
@@ -1967,6 +1976,20 @@ group request_receive {

group response_send {
	
	template Response m_Response_AlertInfo (
		StatusLine p_statusLine, 
		CallId p_callId, 
		CSeq p_cSeq,
	  	From p_from, 
	  	To p_to,
	  	Via p_via, 
	  	AlertInfo p_alertInfo
	) modifies m_Response_Base:= {
		msgHeader := {
			alertInfo := p_alertInfo
		}
	}

	template Response m_Response_ext (StatusLine p_statusLine, CallId p_callId, CSeq p_cSeq,
	  From p_from, To p_to, Via p_via) modifies m_Response_Base:=
	{
@@ -2088,6 +2111,23 @@ group response_receive {
	  }
	}
	
	template Response mw_Response_AlertInfo (
		template StatusLine p_statusLine, 
		template CallId p_callId,
		template CSeq p_cSeq, 
		template AlertInfo p_alertInfo
	) modifies mw_Response_Base:= {
		statusLine := {
			sipVersion := c_sipNameVersion, 
			statusCode := p_statusLine.statusCode, 
			reasonPhrase := ?
		},
		msgHeader :=
		{
			alertInfo := p_alertInfo
	  }
	}
	
	template Response mw_Response_HistoryInfo (template StatusLine p_statusLine, template CallId p_callId,
			template CSeq p_cSeq, template HistoryInfo p_historyInfo) modifies mw_Response_Base:=
		{
@@ -2546,6 +2586,27 @@ group MessageBodies {
			}
		}
	}
	
	template MessageBody mw_MBody_MIME_Ims3gpp(
		template charstring p_disposition, 
		template Ims_3gpp p_ims3gpp
	):= {
		mimeMessageBody := {boundary:=?, 
			mimeEncapsulatedList:= {
    			*,
    			{	
    				content_type:= c_ims3gppAplication, 
    				content_disposition:= p_disposition,
    				mime_encapsulated_part :={
    					xmlBody := {
    						ims3gpp := 	p_ims3gpp
    					}
    				}
    			},
    			*
			}
		}
	}
}
/*
 *