Cisco Unified SIP Proxy -- XML Schema Information

From DocWiki

(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision not shown)
Line 3: Line 3:
-
'''NOTE:  This page contains the XML schema information used with Cisco Unified SIP Proxy Release 8.5 only.'''
 
 +
'''NOTE:'''  This page contains the XML schema information used with Cisco Unified SIP Proxy Release 8.5 only.
-
The XSD file is text based and therefore be opened by any text editor.  CUSP Route Table file XML Schema (xsd) information.  One thing that we changed starting with the 8.5 release is the file format of route table files that can be imported into CUSP. 
 
 +
In Cisco Unified SIP Proxy Release 8.5, we changed the format of the route table files that can be imported into Cisco Unified SIP Proxy.  Route tables can now be imported by using the format below.
-
<xs:schema targetNamespace="http://www.cisco.com/cusp/RouteTable"
+
To use this new format, open a text editor and copy and paste the text below into it. 
 +
 
 +
 
 +
<xs:schema targetNamespace="http://www.cisco.com/cusp/RouteTable"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns="http://www.cisco.com/cusp/RouteTable"
           xmlns="http://www.cisco.com/cusp/RouteTable"
           elementFormDefault="qualified"
           elementFormDefault="qualified"
           xml:lang="en">
           xml:lang="en">
-
 
+
     <xs:element name="routes">
     <xs:element name="routes">
         <xs:complexType>
         <xs:complexType>
Line 24: Line 27:
         </xs:complexType>
         </xs:complexType>
     </xs:element>
     </xs:element>
-
 
+
     <xs:complexType name="RouteType">
     <xs:complexType name="RouteType">
         <xs:sequence>
         <xs:sequence>
Line 51: Line 54:
         </xs:sequence>
         </xs:sequence>
     </xs:complexType>
     </xs:complexType>
-
 
+
     <xs:simpleType name="KeyType">
     <xs:simpleType name="KeyType">
         <xs:restriction base="xs:string">
         <xs:restriction base="xs:string">
Line 57: Line 60:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
     <xs:complexType name="TargetDestinationType">
     <xs:complexType name="TargetDestinationType">
         <xs:sequence>
         <xs:sequence>
Line 65: Line 68:
         </xs:sequence>
         </xs:sequence>
     </xs:complexType>
     </xs:complexType>
-
 
+
     <xs:simpleType name="RouteUriType">
     <xs:simpleType name="RouteUriType">
         <xs:restriction base="xs:string">
         <xs:restriction base="xs:string">
Line 71: Line 74:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
     <xs:simpleType name="NetworkType">
     <xs:simpleType name="NetworkType">
         <xs:restriction base="xs:string">
         <xs:restriction base="xs:string">
Line 77: Line 80:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
     <xs:simpleType name="RouteGroupType">
     <xs:simpleType name="RouteGroupType">
         <xs:restriction base="xs:string">
         <xs:restriction base="xs:string">
Line 83: Line 86:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
     <xs:simpleType name="ResponseType">
     <xs:simpleType name="ResponseType">
         <xs:restriction base="xs:positiveInteger">
         <xs:restriction base="xs:positiveInteger">
Line 90: Line 93:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
     <xs:simpleType name="PolicyType">
     <xs:simpleType name="PolicyType">
         <xs:restriction base="xs:string">
         <xs:restriction base="xs:string">
Line 96: Line 99:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
     <xs:simpleType name="HostType">
     <xs:simpleType name="HostType">
         <xs:restriction base="xs:string">
         <xs:restriction base="xs:string">
Line 102: Line 105:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
     <xs:simpleType name="PortType">
     <xs:simpleType name="PortType">
         <xs:restriction base="xs:positiveInteger">
         <xs:restriction base="xs:positiveInteger">
Line 109: Line 112:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
     <xs:simpleType name="TransportType">
     <xs:simpleType name="TransportType">
         <xs:restriction base="xs:string">
         <xs:restriction base="xs:string">
Line 117: Line 120:
         </xs:restriction>
         </xs:restriction>
     </xs:simpleType>
     </xs:simpleType>
-
 
+
-
</xs:schema>
+
</xs:schema>

Latest revision as of 22:54, 16 November 2010

Return to the main Cisco Unified SIP Proxy DocWiki page: Cisco Unified SIP Proxy



NOTE: This page contains the XML schema information used with Cisco Unified SIP Proxy Release 8.5 only.


In Cisco Unified SIP Proxy Release 8.5, we changed the format of the route table files that can be imported into Cisco Unified SIP Proxy. Route tables can now be imported by using the format below.

To use this new format, open a text editor and copy and paste the text below into it.


<xs:schema targetNamespace="http://www.cisco.com/cusp/RouteTable"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns="http://www.cisco.com/cusp/RouteTable"
          elementFormDefault="qualified"
          xml:lang="en">

   <xs:element name="routes">
       <xs:complexType>
           <xs:sequence>
               <xs:element name="route" type="RouteType"
                           minOccurs="1" maxOccurs="unbounded"/>
           </xs:sequence>
       </xs:complexType>
   </xs:element>

   <xs:complexType name="RouteType">
       <xs:sequence>
           <xs:element name="key" type="KeyType"/>
           <xs:choice>
               <xs:sequence>
                   <xs:choice>
                       <xs:sequence>
                           <xs:element name="target-destination" type="TargetDestinationType"/>
                           <xs:element name="route-uri" type="RouteUriType" minOccurs="0" maxOccurs="1"/>
                       </xs:sequence>
                       <xs:sequence>
                           <xs:element name="route-uri" type="RouteUriType"/>
                       </xs:sequence>
                   </xs:choice>
                   <xs:element name="network" type="NetworkType"/>
               </xs:sequence>
               <xs:element name="route-group" type="RouteGroupType"/>
               <xs:element name="response" type="ResponseType"/>
               <xs:element name="policy" type="PolicyType"/>
               <xs:sequence>
                   <xs:element name="default" type="xs:boolean"/>
                   <xs:element name="network" type="NetworkType"/>
               </xs:sequence>
           </xs:choice>
       </xs:sequence>
   </xs:complexType>

   <xs:simpleType name="KeyType">
       <xs:restriction base="xs:string">
           <xs:pattern value=".+"/>
       </xs:restriction>
   </xs:simpleType>

   <xs:complexType name="TargetDestinationType">
       <xs:sequence>
           <xs:element name="host" type="HostType"/>
           <xs:element name="port" type="PortType" minOccurs="0" maxOccurs="1"/>
           <xs:element name="transport" type="TransportType" minOccurs="0" maxOccurs="1"/>
       </xs:sequence>
   </xs:complexType>

   <xs:simpleType name="RouteUriType">
       <xs:restriction base="xs:string">
           <xs:pattern value=".+"/>
       </xs:restriction>
   </xs:simpleType>

   <xs:simpleType name="NetworkType">
       <xs:restriction base="xs:string">
           <xs:pattern value=".+"/>
       </xs:restriction>
   </xs:simpleType>

   <xs:simpleType name="RouteGroupType">
       <xs:restriction base="xs:string">
           <xs:pattern value="[\-a-zA-Z0-9_\.]+"/>
       </xs:restriction>
   </xs:simpleType>

   <xs:simpleType name="ResponseType">
       <xs:restriction base="xs:positiveInteger">
           <xs:minInclusive value="400"/>
           <xs:maxInclusive value="599"/>
       </xs:restriction>
   </xs:simpleType>

   <xs:simpleType name="PolicyType">
       <xs:restriction base="xs:string">
           <xs:pattern value="[\-a-zA-Z0-9_\.]+"/>
       </xs:restriction>
   </xs:simpleType>

   <xs:simpleType name="HostType">
       <xs:restriction base="xs:string">
           <xs:pattern value="[A-Za-z0-9_\.\-\+]+"/>
       </xs:restriction>
   </xs:simpleType>

   <xs:simpleType name="PortType">
       <xs:restriction base="xs:positiveInteger">
           <xs:minInclusive value="1024"/>
           <xs:maxInclusive value="65535"/>
       </xs:restriction>
   </xs:simpleType>

   <xs:simpleType name="TransportType">
       <xs:restriction base="xs:string">
           <xs:enumeration value="udp"/>
           <xs:enumeration value="tcp"/>
           <xs:enumeration value="tls"/>
       </xs:restriction>
   </xs:simpleType>

</xs:schema>

Rating: 0.0/5 (0 votes cast)

Personal tools