Commit 1f2c7970 authored by pintar's avatar pintar
Browse files

new XML definitions

parent 236e1528
Loading
Loading
Loading
Loading

xsd/ACR_CB.xsd

0 → 100644
+54 −0
Original line number Diff line number Diff line

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ss="http://uri.etsi.org/ngn/params/xml/simservs/xcap" xmlns:cp="urn:ietf:params:xml:ns:common-policy"
xmlns:ocp="urn:oma:xml:xdm:common-policy"
targetNamespace="http://uri.etsi.org/ngn/params/xml/simservs/xcap" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- import common policy definitions -->
<xs:import namespace="urn:ietf:params:xml:ns:common-policy" schemaLocation="common-policy.xsd"/>
<!-- import OMA common policy extensions -->
<xs:import namespace="urn:oma:xml:xdm:common-policy" schemaLocation="xdm_commonPolicy-v1_0.xsd"/>
<!-- incoming communication barring rule set based on the common policy rule set.-->
<xs:element name="incoming-communication-barring" substitutionGroup="ss:absService">
<xs:annotation>
<xs:documentation>This is the incoming communication barring configuration
document.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="ss:simservType">
<xs:sequence>
<!-- add service specific elements here-->
<xs:element ref="cp:ruleset" minOccurs="0"/>
</xs:sequence>
</xs:extension>
<!-- service specific attributes can be defined here -->
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- outgoing communication barring rule set based on the common policy rule set.-->
<xs:element name="outgoing-communication-barring" substitutionGroup="ss:absService">
<xs:annotation>
<xs:documentation>This is the outgoing communication barring configuration
document.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="ss:simservType">
<xs:sequence>
<!-- add service specific elements here-->
<xs:element ref="cp:ruleset" minOccurs="0"/>
</xs:sequence>
</xs:extension>
<!-- service specific attributes can be defined here -->
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- communication barring specific extensions to IETF common policy actions-->
<xs:element name="allow" type="ss:allow-action-type"/>
<!-- communication barring specific type declarations -->
<!-- <xs:simpleType name="allow-action-type" final="list restriction"> -->
<xs:simpleType name="allow-action-type">
<xs:restriction base="xs:boolean"/>
</xs:simpleType>
</xs:schema>
 No newline at end of file

xsd/CDIV.xsd

0 → 100644
+68 −0
Original line number Diff line number Diff line

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ss="http://uri.etsi.org/ngn/params/xml/simservs/xcap"
xmlns:cp="urn:ietf:params:xml:ns:common-policy"
xmlns:ocp="urn:oma:xml:xdm:common-policy"
targetNamespace="http://uri.etsi.org/ngn/params/xml/simservs/xcap"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- import common policy definitions -->
<xs:import namespace="urn:ietf:params:xml:ns:common-policy" schemaLocation="common-policy.xsd"/>
<!-- import OMA common policy extensions -->
<xs:import namespace="urn:oma:xml:xdm:common-policy" schemaLocation="xdm_commonPolicy-v1_0.xsd"/>
<!-- communication diversion specific extensions to IETF common policy conditions. The
cp:conditionsType is expanded with the elements: ss:not-registered, ss:busy, ss:no-answer, ss:notreachable,
ss:media as optional elements -->
<!-- communication diversion rule set based on the common policy rule set.-->
<xs:element name="communication-diversion" substitutionGroup="ss:absService">
<xs:annotation>
<xs:documentation>This is the communication diversion configuration
document.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="ss:simservType">
<xs:sequence>
<!-- add service specific elements here-->
<xs:element ref="cp:ruleset" minOccurs="0"/>
</xs:sequence>
</xs:extension>
<!-- service specific attributes can be defined here -->
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- communication diversion specific extensions to IETF common policy actions-->
<xs:element name="forward-to" type="ss:forward-to-type"/> <xs:simpleType name="reveal-URIoptions-
type">
<xs:restriction base="xs:string">
<xs:enumeration value="false"/>
<xs:enumeration value="not-reveal-GRUU"/>
<xs:enumeration value="true"/>
</xs:restriction>
</xs:simpleType>
<!-- communication diversion specific type declarations -->
<xs:complexType name="forward-to-type">
<xs:sequence>
<xs:element name="target" type="xs:anyURI" minOccurs="1" maxOccurs="1"/>
<xs:element name="notify-caller" type="xs:boolean" default="true" minOccurs="0"/>
<xs:element name="reveal-identity-to-caller" type="ss:reveal-URI-options-type"
default="true" minOccurs="0"/>
<xs:element name="reveal-served-user-identity-to-caller" type="ss:reveal-URI-optionstype"
default="true" minOccurs="0"/>
<xs:element name="notify-served-user" type="xs:boolean" default="false" minOccurs="0"/>
<xs:element name="notify-served-user-on-outbound-call" type="xs:boolean" default="false"
minOccurs="0"/>
<xs:element name="reveal-identity-to-target" type="ss:reveal-URI-options-type"
default="true" minOccurs="0"/>
<xs:element ref="ss:NoReplyTimer" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="NoReplyTimer">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:minInclusive value="5"/>
<xs:maxInclusive value="180"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:schema>
 No newline at end of file

xsd/CDIVN.xsd

0 → 100644
+249 −0
Original line number Diff line number Diff line

<xs:schema 
  targetNamespace="http://uri.etsi.org/ngn/params/xml/comm-div-info"  
  xmlns:tns="http://uri.etsi.org/ngn/params/xml/comm-div-info"  
  xmlns:xs="http://www.w3.org/2001/XMLSchema"  
  xmlns="http://uri.etsi.org/ngn/params/xml/comm-div-info" 
  elementFormDefault="qualified" 
  attributeFormDefault="unqualified">
  <!--
  This import brings in the XML language definition
  -->
  <xs:import namespace="http://www.w3.org/XML/1998/namespace"
    schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
  <!-- 
  Communication Diversion Information. This is the top-level XML element 
  -->
  <xs:element name="comm-div-info" 
    type="comm-div-info-type" /> 
  <!--
  Communication Diversion Information Type. This is the top-level XML element 
  -->
  <xs:complexType name="comm-div-info-type">
    <xs:sequence>
      <xs:element name="comm-div-subs-info"
        type="comm-div-subs-info-type" minOccurs="0" />
      <xs:element name="comm-div-ntfy-info"
        type="comm-div-ntfy-info-type" minOccurs="0" />
      <xs:any namespace="##other" processContents="lax"
        minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="entity" type="xs:anyURI" 
      use="required"/>
  </xs:complexType>
  <!---
  Communication Diversion Subscription Type.
  Used at Subscription time to
        select Communication Diversions for notification,
        when to notify them and
        what to notify.
  -->
  <xs:complexType name="comm-div-subs-info-type">
    <xs:sequence>
      <xs:element name="comm-div-selection-criteria"
        type="comm-div-selection-criteria-type" 
        minOccurs="0" />
      <xs:element name="comm-div-ntfy-trigger-criteria"
        type="comm-div-ntfy-trigger-criteria-type" 
        minOccurs="0" />
      <xs:element name="comm-div-info-selection-criteria"
        type="comm-div-info-selection-criteria-type" 
        minOccurs="0" />
      <xs:any namespace="##other" processContents="lax"
        minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!---
  Communication Diversion Notification Information Type
  Used while notifying the User about the Communication Diversion
  -->
  <xs:complexType name="comm-div-ntfy-info-type">
    <xs:sequence>
      <xs:element name="originating-user-info"
        type="user-info-type" minOccurs="0" />
      <xs:element name="diverting-user-info"
        type="xs:anyURI" minOccurs="0" />
      <xs:element name="diverted-to-user-info"
        type="xs:anyURI" minOccurs="0" />
      <xs:element name="diversion-time-info" 
        type="xs:dateTime" minOccurs="0" />
      <xs:element name="diversion-reason-info"
        type="diversion-reason-info-type" minOccurs="0" />
      <xs:element name="diversion-rule-info"
        type="diversion-rule-info-type" minOccurs="0" />
      <xs:any namespace="##other" processContents="lax"
        minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  COMMUNICATION DIVERSION SELECTION CRITERIA
  -->
  <xs:complexType name="comm-div-selection-criteria-type">
    <xs:sequence>
      <xs:element name="originating-user-selection-criteria"
        type="user-selection-criteria-type" 
        minOccurs="0" />
      <xs:element name="diverting-user-selection-criteria"
        type="xs:anyURI" 
        minOccurs="0" />
      <xs:element name="diverted-to-user-selection-criteria"
        type="xs:anyURI" 
        minOccurs="0" />
      <xs:element name="diversion-time-selection-criteria"
        type="time-range-selection-criteria-type" 
        minOccurs="0" />
      <xs:element name="diversion-reason-selection-criteria"
        type="diversion-reason-selection-criteria-type" 
        minOccurs="0" />
      <xs:any namespace="##other" processContents="lax"
        minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  COMMUNICATION DIVERSION NOTIFICATION TRIGGER CRITERIA
  -->
  <xs:complexType name="comm-div-ntfy-trigger-criteria-type">
    <xs:sequence>
      <xs:element name="notification-time-selection-criteria"
        type="time-range-selection-criteria-type" 
        minOccurs="0" />
      <xs:element name="presence-status-selection-criteria"
        type="presence-status-selection-criteria-type" 
        minOccurs="0" />
      <xs:element name="notification-buffer-interval" minOccurs="0" default="86400">
        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:maxInclusive value="86400"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:any namespace="##other" processContents="lax"
        minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  COMMUNICATION DIVERSION INFORMATION SELECTION CRITERIA
  -->
  <xs:complexType name="comm-div-info-selection-criteria-type">
    <xs:sequence>
      <xs:element name="disable-originating-user-info"
        type="xs:boolean" default="false" minOccurs="0" />
      <xs:element name="disable-diverting-user-info"
        type="xs:boolean" default="false" minOccurs="0" />
      <xs:element name="disable-diverted-to-user-info"
        type="xs:boolean" default="false" minOccurs="0" />
      <xs:element name="disable-diversion-time-info"
        type="xs:boolean" default="false" minOccurs="0" />
      <xs:element name="disable-diversion-reason-info"
        type="xs:boolean" default="false" minOccurs="0" />
      <xs:element name="disable-diversion-rule-info"
        type="xs:boolean" default="false" minOccurs="0" />
      <xs:any namespace="##other" processContents="lax"
        minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>

  <!-- User Info Type -->
  <xs:complexType name="user-info-type">
    <xs:sequence>
      <xs:element name="user-name" type="xs:string" minOccurs="0" maxOccurs="1"/>
      <xs:element name="user-URI" type="xs:anyURI"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>

  <!--    
  DIVERSION REASON INFO
  -->

    <xs:simpleType name="diversion-reason-info-types">
        <xs:list itemType="diversion-reason-info-type"/>
    </xs:simpleType>
  <xs:simpleType name="diversion-reason-info-type">
        <xs:restriction base="xs:integer">
            <xs:enumeration value="404"/>
            <xs:enumeration value="486"/>
            <xs:enumeration value="408"/>
            <xs:enumeration value="302"/>
            <xs:enumeration value="487"/>
            <xs:enumeration value="480"/>
            <xs:enumeration value="503"/>
        </xs:restriction>
  </xs:simpleType>
  <!--    
  DIVERSION RULE INFO
  -->
  <xs:complexType name="diversion-rule-info-type">
    <xs:sequence>
      <xs:element name="diversion-rule" type="xs:string"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  ORIGINATING USER SELECTION CRITERIA
  -->
  <xs:complexType name="user-selection-criteria-type">
    <xs:sequence>
      <xs:element name="user-info" 
        type="user-info-type" minOccurs="0"
        maxOccurs="unbounded" />
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  DIVERSION REASON SELECTION CRITERIA
  -->
  <xs:complexType name="diversion-reason-selection-criteria-type">
    <xs:sequence>
      <xs:element name="diversion-reason-info" 
        type="diversion-reason-info-types"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  TIME RANGE SELECTION CRITERIA
  -->
  <xs:complexType name="time-range-selection-criteria-type">
    <xs:sequence>
      <xs:element name="time-range" 
        type="time-range-type" minOccurs="0" 
        maxOccurs="unbounded" />
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  TIME RANGE INFO
  -->
  <xs:complexType name="time-range-type">
    <xs:sequence>
      <xs:element name="start-time" type="xs:dateTime" />
      <xs:element name="end-time" type="xs:dateTime" />
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  PRESENCE STATUS SELECTION CRITERIA
  -->
  <xs:complexType name="presence-status-selection-criteria-type">
    <xs:sequence>
      <xs:element name="presence-status-info" 
        type="presence-status-info-type" minOccurs="0"
        maxOccurs="unbounded" />
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
  <!--
  PRESENCE STATUS INFo
  -->
  <xs:complexType name="presence-status-info-type">
    <xs:sequence>
      <xs:element name="presence-status" type="xs:string" />
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
</xs:schema>
 No newline at end of file

xsd/CONF.xsd

0 → 100644
+387 −0

File added.

Preview size limit exceeded, changes collapsed.

xsd/Ims_3gpp.ttcn3view

0 → 100644
+58 −0
Original line number Diff line number Diff line
module Ims_3gpp {
  import from XSDAUX language "TTCN-3:2009" all; 

  type record TAlternativeService {
    record of record {
      charstring name,
      anytype value_
    } anyAttributes optional,
    TType type_,
    XSDAUX.string reason,
    record of anytype elem optional
  }

  type record TType {
    record of record {
      charstring name,
      anytype value_
    } anyAttributes optional,
    record of anytype elem optional
  }

  type record Emergency_registration {
  }

  type record Initial_registration {
  }

  type record Restoration {
  }

  type record Emergency {
  }

  type record TAction {
    record of record {
      charstring name,
      anytype value_
    } anyAttributes optional,
    record of anytype elem optional
  }

  type record TIMS3GPP {
    XSDAUX.decimal version,
    record of record {
      charstring name,
      anytype value_
    } anyAttributes optional,
    union {
      TAlternativeService alternative_service,
      XSDAUX.string service_info
    } choice,
    record of anytype elem optional
  }

}
with {
  encode "Ims_3gpp";
}
Loading