8 Appendix C: Full Call Context Format

Following is the schema for call context data.

<?xml version="1.0"       encoding="UTF-8"?>
<xs:schema version="1.0" targetNamespace="http://schemas.microsoft.com/2008/03/sip/conversationContext" xmlns:callctns="http://schemas.microsoft.com/2008/03/sip/conversationContext" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
 
  <xs:annotation>
    <xs:documentation>Notes/Context associated with a conversation </xs:documentation>
  </xs:annotation>
  
  <xs:complexType name="XmlConvContextParticipantType">
    <xs:sequence>
      <xs:element name="uri" type="xs:string" minOccurs="1" maxOccurs="1"/>
      <xs:element name="displayName" type="xs:string" minOccurs="0" maxOccurs="1"/>
      <xs:element name="onBehalfUri" type="xs:string" minOccurs="0" maxOccurs="1"/>
      <xs:element name="onBehalfDisplayName" type="xs:string" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
 
 
  <xs:complexType name="XmlConvContextParticipantCollectionType">
    <xs:sequence>
      <xs:element name="participant" type="callctns:XmlConvContextParticipantType" minOccurs="1" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
 
 
  <xs:complexType name="XmlConvContextType" >
    <xs:sequence>
      <xs:element name="id" type="xs:token"  minOccurs="1" maxOccurs="1"/>
      <xs:element name="from" type="callctns:XmlConvContextParticipantType" minOccurs="1" maxOccurs="1"/>      
      <xs:element name="to" type="callctns:XmlConvContextParticipantType" minOccurs="1" maxOccurs="1"/>      
      <xs:element name="participants" type="callctns:XmlConvContextParticipantCollectionType" minOccurs="1" maxOccurs="1" />
      <xs:element name="date" type="xs:dateTime" minOccurs="1" maxOccurs="1"/>
      <xs:element name="mode" type="xs:token" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="conversationId" type="xs:token" minOccurs="1" maxOccurs="1"/>
      <xs:element name="dataFormat" type="xs:string" minOccurs="1" maxOccurs="1"/>
      <xs:element name="contextData" type="xs:string" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
 
  <xs:element name="XmlConvContext" type="callctns:XmlConvContextType" />
 
</xs:schema>