Commit ae50461b authored by rennoch's avatar rennoch
Browse files

user to user header templates

parent a2521a98
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
@@ -449,7 +449,11 @@ group SubTypes{// Subtypes
		P_ASSERTED_SERVICE_E,
		
		//[5009]
		P_EARLY_MEDIA_E
		P_EARLY_MEDIA_E,
		
		//http://tools.ietf.org/html/draft-johnston-sipping-cc-uui-07
		//Transporting User to User Call Control Information in SIP for ISDN Interworking
		USER_TO_USER_E
		
      }
      
@@ -1364,6 +1368,19 @@ group SubTypes{// Subtypes
	  type record of charstring EM_List; 
	  }//end group RFC5009PEarlyMediaHeader

      //http://tools.ietf.org/html/draft-johnston-sipping-cc-uui-07, expires 16.Aug.2009
      //Transporting User to User Call Control Information in SIP for ISDN Interworking
      //type definition of SIP header mechanism 
      group UserToUser_PreliminaryRFCDraft
      {
      	type record UserToUser{
			FieldName fieldName (USER_TO_USER_E),
			charstring  uuiData, /*length limitation due to ISDN*/
			GenericParam uuiParam
      	}

      }//end group UserToUser_PreliminaryRFCDraft

	  type record PAssertedService {
		  FieldName fieldName(P_ASSERTED_SERVICE_E),
		  PAssertedServiceValue pAssertedServiceValue
@@ -1446,6 +1463,7 @@ group SubTypes{// Subtypes
        Timestamp 			timestamp optional,
        To					toField,
        Unsupported			unsupported optional, // only in responses
		UserToUser          userToUser optional,
        UserAgent 			userAgent optional,
        Via					via,
        Warning				warning optional, // only in responses
+32 −2
Original line number Diff line number Diff line
@@ -634,6 +634,19 @@ module LibSip_Templates
			paramValue := "phone"
		}
  		
  		template GenericParam m_UserToUserEncodingHex :=
        {
          id := "encoding",
     	  paramValue := "hex"
        }
        
        template UserToUser m_UserToUserData(template charstring p_U2UData):=
        {
          fieldName := USER_TO_USER_E,
          uuiData := p_U2UData,
          uuiParam := m_UserToUserEncodingHex
        }
        
		template To m_To(template SipUrl p_sipUrl) :=
		{
		  fieldName := TO_E,
@@ -1811,6 +1824,14 @@ group request_receive {
		}
	}

	template BYE_Request mw_BYE_Request_UserToUser(template CallId p_callId) modifies mw_BYE_Request_Base :=
	{
		msgHeader :=
		{
			userToUser := ?
		}
	}

    template INFO_Request mw_INFO_Request_MB (template CallId p_callId, template MessageBody p_mb) modifies mw_INFO_Request_Base :=
    {
     messageBody := p_mb
@@ -2024,6 +2045,15 @@ group response_receive {
       }
     }
     
     template Response mw_Response_UserToUser (template StatusLine p_statusLine, template CallId p_callId,
      template CSeq p_cSeq) modifies mw_Response_Base:=
     {
     statusLine := {sipVersion := c_sipNameVersion, statusCode := p_statusLine.statusCode, reasonPhrase := ?},
     msgHeader :=
     {
     	userToUser := ?
       }
     }
} //*  end group response_receive