Browse Source

Fixed inconsistent use of mixed tabs and spaces for indenting db schema files

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2946 689a6050-402a-0410-94f2-e92a70836424
Dan Pascu 18 years ago
parent
commit
307860b26b

+ 1 - 1
lib/srdb1/schema/acc.xml

@@ -12,7 +12,7 @@
     <version>4</version>
     <version>4</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-	    <db:para>This table is used by the ACC module to report on transactions - accounted calls. More information is available at: &OPENSER_MOD_DOC;acc.html
+        <db:para>This table is used by the ACC module to report on transactions - accounted calls. More information is available at: &OPENSER_MOD_DOC;acc.html
         </db:para>
         </db:para>
     </description>
     </description>
 
 

+ 27 - 26
lib/srdb1/schema/aliases.xml

@@ -12,42 +12,42 @@
     <version>1004</version>
     <version>1004</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-	    <db:para>This table for the registrar module is similar to the "location" table, (aliases_contact index makes lookup of missed calls much faster). More information is available at: &OPENSER_MOD_DOC;registrar.html
-	</db:para>
+        <db:para>This table for the registrar module is similar to the "location" table, (aliases_contact index makes lookup of missed calls much faster). More information is available at: &OPENSER_MOD_DOC;registrar.html
+        </db:para>
     </description>
     </description>
 
 
     <column id="id">
     <column id="id">
-	<name>id</name>
-	<type>unsigned int</type>
-	<size>&table_id_len;</size>
-	<autoincrement/>
-	<primary/>
-	<type db="postgres">SERIAL PRIMARY KEY</type>
-	<type db="dbtext">int,auto</type>
-	<description>unique ID</description>
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="postgres">SERIAL PRIMARY KEY</type>
+        <type db="dbtext">int,auto</type>
+        <description>unique ID</description>
     </column>
     </column>
 
 
     <column id="username">
     <column id="username">
-	    <name>&USERCOL;</name>
-	    <type>string</type>
-	    <size>&user_len;</size>
-            <default/>
-            <description>Alias Username / Phone Number </description>
+        <name>&USERCOL;</name>
+        <type>string</type>
+        <size>&user_len;</size>
+        <default/>
+        <description>Alias Username / Phone Number </description>
     </column>
     </column>
 
 
     <column id="domain">
     <column id="domain">
-	<name>domain</name>
-	<type>string</type>
-	<size>&domain_len;</size>
+        <name>domain</name>
+        <type>string</type>
+        <size>&domain_len;</size>
         <default/>
         <default/>
-	<description>Domain name</description>
+        <description>Domain name</description>
     </column>
     </column>
 
 
     <column id="contact">
     <column id="contact">
-	<name>contact</name>
-	<type>string</type>
-	<size>&hf_len;</size>
-	<default/>
+        <name>contact</name>
+        <type>string</type>
+        <size>&hf_len;</size>
+        <default/>
         <description>Contact header field value provides a URI whoses meaning depends on the type of request or response it is in.</description>
         <description>Contact header field value provides a URI whoses meaning depends on the type of request or response it is in.</description>
     </column>
     </column>
 
 
@@ -150,9 +150,10 @@
     </column>
     </column>
 
 
     <index>
     <index>
-	<name>udc_als</name>
-	<colref linkend="username"/>
-	<colref linkend="domain"/>
+        <name>udc_als</name>
+        <colref linkend="username"/>
+        <colref linkend="domain"/>
         <colref linkend="contact"/>
         <colref linkend="contact"/>
     </index>
     </index>
+
 </table>
 </table>

+ 27 - 26
lib/srdb1/schema/cpl.xml

@@ -12,49 +12,50 @@
     <version>1</version>
     <version>1</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-	    <db:para>Table for the call processing language "cpl" module. More information is available at: &OPENSER_MOD_DOC;cpl-c.html</db:para>
+        <db:para>Table for the call processing language "cpl" module. More information is available at: &OPENSER_MOD_DOC;cpl-c.html</db:para>
     </description>
     </description>
 
 
     <column id="id">
     <column id="id">
-	<name>id</name>
-	<type>unsigned int</type>
-	<size>&table_id_len;</size>
-	<autoincrement/>
-	<primary/>
-	<type db="postgres">SERIAL PRIMARY KEY</type>
-	<type db="dbtext">int,auto</type>
-	<description>Unique ID</description>
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="postgres">SERIAL PRIMARY KEY</type>
+        <type db="dbtext">int,auto</type>
+        <description>Unique ID</description>
     </column>
     </column>
 
 
     <column id="username">
     <column id="username">
-	    <name>username</name>
-	    <type>string</type>
-	    <size>&user_len;</size>
+        <name>username</name>
+        <type>string</type>
+        <size>&user_len;</size>
     </column>
     </column>
 
 
     <column id="domain">
     <column id="domain">
-	    <name>domain</name>
-	    <type>string</type>
-	    <size>64</size>
-	    <default/>
+        <name>domain</name>
+        <type>string</type>
+        <size>64</size>
+        <default/>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>cpl_xml</name>
-	<type>text</type>
-	<null/>
+        <name>cpl_xml</name>
+        <type>text</type>
+        <null/>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>cpl_bin</name>
-	<type>text</type>
-	<null/>
+        <name>cpl_bin</name>
+        <type>text</type>
+        <null/>
     </column>
     </column>
 
 
     <index>
     <index>
-	<name>ud_cpl</name>
-	<unique/>
-	<colref linkend="username"/>
-	<colref linkend="domain"/>
+        <name>ud_cpl</name>
+        <unique/>
+        <colref linkend="username"/>
+        <colref linkend="domain"/>
     </index>
     </index>
+
 </table>
 </table>

+ 2 - 2
lib/srdb1/schema/dispatcher.xml

@@ -31,7 +31,7 @@
         <name>setid</name>
         <name>setid</name>
         <type>int</type>
         <type>int</type>
         <description>Destination set id</description>
         <description>Destination set id</description>
-		<default>0</default>
+        <default>0</default>
     </column>
     </column>
 
 
     <column id="dst">
     <column id="dst">
@@ -46,7 +46,7 @@
         <name>description</name>
         <name>description</name>
         <type>string</type>
         <type>string</type>
         <size>64</size>
         <size>64</size>
-		<default/>
+        <default/>
         <description>Description for this destination</description>
         <description>Description for this destination</description>
     </column>
     </column>
 
 

+ 53 - 52
lib/srdb1/schema/gw.xml

@@ -13,93 +13,94 @@
     <version>5</version>
     <version>5</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-	<db:para>This table contains Least Cost Routing Gateway definitions for the LCR module.
-		More information can be found at: &OPENSER_MOD_DOC;lcr.html.
-	</db:para>
+        <db:para>This table contains Least Cost Routing Gateway definitions for the LCR module.
+                 More information can be found at: &OPENSER_MOD_DOC;lcr.html.
+        </db:para>
     </description>
     </description>
 
 
     <column id="id">
     <column id="id">
-	<name>id</name>
-	<type>unsigned int</type>
-	<size>&table_id_len;</size>
-	<autoincrement/>
-	<primary/>
-	<type db="postgres">SERIAL PRIMARY KEY</type>
-	<type db="dbtext">int,auto</type>
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="postgres">SERIAL PRIMARY KEY</type>
+        <type db="dbtext">int,auto</type>
     </column>
     </column>
 
 
     <column id="gw_name">
     <column id="gw_name">
-	<name>gw_name</name>
-	<type>string</type>
-	<size>128</size>
-	<description>Gateway Name</description>
+        <name>gw_name</name>
+        <type>string</type>
+        <size>128</size>
+        <description>Gateway Name</description>
     </column>
     </column>
 
 
     <column id="grp_id">
     <column id="grp_id">
-	    <name>grp_id</name>
-	    <type>unsigned int</type>
-	    <description>Gateway ID</description>
+        <name>grp_id</name>
+        <type>unsigned int</type>
+        <description>Gateway ID</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	    <name>ip_addr</name>
-	    <type>string</type>
-	    <size>15</size>
-	    <description>IP Address of the gateway</description>
+        <name>ip_addr</name>
+        <type>string</type>
+        <size>15</size>
+        <description>IP Address of the gateway</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>port</name>
-	<type>unsigned short</type>
-	<null/>
-	<description>Port of the gateway</description>
+        <name>port</name>
+        <type>unsigned short</type>
+        <null/>
+        <description>Port of the gateway</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>uri_scheme</name>
-	<type>unsigned char</type>
-	<null/>
-	<description>URI scheme of the gateway</description>
+        <name>uri_scheme</name>
+        <type>unsigned char</type>
+        <null/>
+        <description>URI scheme of the gateway</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>transport</name>
-	<type>unsigned char</type>
-	<null/>
-	<description>Transport type to be used for the gateway</description>
+        <name>transport</name>
+        <type>unsigned char</type>
+        <null/>
+        <description>Transport type to be used for the gateway</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	    <name>strip</name>
-	    <type>unsigned char</type>
-	    <null/>
-	    <description>The number of digits to strip from the RURI before applying the prefix.</description>
+        <name>strip</name>
+        <type>unsigned char</type>
+        <null/>
+        <description>The number of digits to strip from the RURI before applying the prefix.</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	    <name>prefix</name>
-	    <type>string</type>
-	    <size>16</size>
-	    <null/>
-	    <default><null/></default>
-	    <description>The R-URI(destination) prefix</description>
+        <name>prefix</name>
+        <type>string</type>
+        <size>16</size>
+        <null/>
+        <default><null/></default>
+        <description>The R-URI(destination) prefix</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	    <name>dm</name>
-	    <type>unsigned char</type>
-	    <default>&DEFAULT_DM;</default>
-	    <description>Does gateway support directed media (0 = no, 1 = yes)</description>
+        <name>dm</name>
+        <type>unsigned char</type>
+        <default>&DEFAULT_DM;</default>
+        <description>Does gateway support directed media (0 = no, 1 = yes)</description>
     </column>
     </column>
 
 
     <index>
     <index>
-	<name>name_gw</name>
-	<colref linkend="gw_name"/>
-	<unique/>
+        <name>name_gw</name>
+        <colref linkend="gw_name"/>
+        <unique/>
     </index>
     </index>
 
 
     <index>
     <index>
-	<name>gid_gw</name>
-	<colref linkend="grp_id"/>
+        <name>gid_gw</name>
+        <colref linkend="grp_id"/>
     </index>
     </index>
+
 </table>
 </table>

+ 26 - 25
lib/srdb1/schema/location.xml

@@ -13,41 +13,41 @@
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
         <db:para>Persistent user location information for the usrloc module. More information can be found at: &OPENSER_MOD_DOC;usrloc.html
         <db:para>Persistent user location information for the usrloc module. More information can be found at: &OPENSER_MOD_DOC;usrloc.html
-	</db:para>
+        </db:para>
     </description>
     </description>
 
 
     <column id="id">
     <column id="id">
-	<name>id</name>
-	<type>unsigned int</type>
-	<size>&table_id_len;</size>
-	<autoincrement/>
-	<primary/>
-	<type db="postgres">SERIAL PRIMARY KEY</type>
-	<type db="dbtext">int,auto</type>
-	<description>unique ID</description>
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="postgres">SERIAL PRIMARY KEY</type>
+        <type db="dbtext">int,auto</type>
+        <description>unique ID</description>
     </column>
     </column>
 
 
     <column id="username">
     <column id="username">
-	    <name>&USERCOL;</name>
-	    <type>string</type>
-	    <size>&user_len;</size>
-            <default/>
-            <description>Alias Username / Phone Number </description>
+        <name>&USERCOL;</name>
+        <type>string</type>
+        <size>&user_len;</size>
+        <default/>
+        <description>Alias Username / Phone Number </description>
     </column>
     </column>
 
 
     <column id="domain">
     <column id="domain">
-	<name>domain</name>
-	<type>string</type>
-	<size>&domain_len;</size>
+        <name>domain</name>
+        <type>string</type>
+        <size>&domain_len;</size>
         <default/>
         <default/>
-	<description>Domain name</description>
+        <description>Domain name</description>
     </column>
     </column>
 
 
     <column id="contact">
     <column id="contact">
-	<name>contact</name>
-	<type>string</type>
-	<size>&hf_len;</size>
-	<default/>
+        <name>contact</name>
+        <type>string</type>
+        <size>&hf_len;</size>
+        <default/>
         <description>Contact header field value provides a URI whoses meaning depends on the type of request or response it is in.</description>
         <description>Contact header field value provides a URI whoses meaning depends on the type of request or response it is in.</description>
     </column>
     </column>
 
 
@@ -150,9 +150,10 @@
     </column>
     </column>
 
 
     <index>
     <index>
-	<name>udc_loc</name>
-	<colref linkend="username"/>
-	<colref linkend="domain"/>
+        <name>udc_loc</name>
+        <colref linkend="username"/>
+        <colref linkend="domain"/>
         <colref linkend="contact"/>
         <colref linkend="contact"/>
     </index>
     </index>
+
 </table>
 </table>

+ 5 - 6
lib/srdb1/schema/pr_active_watchers.xml

@@ -33,8 +33,8 @@
         <size>&uri_len;</size>
         <size>&uri_len;</size>
         <description>Presence URI</description>
         <description>Presence URI</description>
     </column>
     </column>
-   
-	<column>
+
+    <column>
         <name>watcher_username</name>
         <name>watcher_username</name>
         <type>string</type>
         <type>string</type>
         <size>&user_len;</size>
         <size>&user_len;</size>
@@ -62,7 +62,6 @@
         <description>To Domain</description>
         <description>To Domain</description>
     </column>
     </column>
 
 
-  
     <column>
     <column>
         <name>event</name>
         <name>event</name>
         <type>string</type>
         <type>string</type>
@@ -137,13 +136,13 @@
 
 
     <column>
     <column>
         <name>status</name>
         <name>status</name>
-		<type>int</type>
+        <type>int</type>
         <size>11</size>
         <size>11</size>
         <default>2</default>
         <default>2</default>
         <description>Status</description>
         <description>Status</description>
     </column>
     </column>
-	
-	<column>
+
+    <column>
         <name>reason</name>
         <name>reason</name>
         <type>string</type>
         <type>string</type>
         <size>&user_len;</size>
         <size>&user_len;</size>

+ 1 - 1
lib/srdb1/schema/pr_presentity.xml

@@ -81,6 +81,6 @@
         <colref linkend="event"/>
         <colref linkend="event"/>
         <colref linkend="etag"/>
         <colref linkend="etag"/>
         <unique/>
         <unique/>
-	</index>
+    </index>
 
 
 </table>
 </table>

+ 8 - 8
lib/srdb1/schema/pr_pua.xml

@@ -54,8 +54,8 @@
         <size>&expires_len;</size>
         <size>&expires_len;</size>
         <description>Expires</description>
         <description>Expires</description>
     </column>
     </column>
-	
-	<column>
+
+    <column>
         <name>desired_expires</name>
         <name>desired_expires</name>
         <type>int</type>
         <type>int</type>
         <size>&expires_len;</size>
         <size>&expires_len;</size>
@@ -124,20 +124,20 @@
         <null/>
         <null/>
         <description>Record route</description>
         <description>Record route</description>
     </column>
     </column>
-   
-	<column>
+
+    <column>
         <name>contact</name>
         <name>contact</name>
         <type>string</type>
         <type>string</type>
-		<size>&uri_len;</size>
-		<description>Contact</description>
+        <size>&uri_len;</size>
+        <description>Contact</description>
     </column>
     </column>
 
 
     <column>
     <column>
         <name>version</name>
         <name>version</name>
         <type>int</type>
         <type>int</type>
         <size>11</size>
         <size>11</size>
-	</column>
-	<column>
+        </column>
+        <column>
         <name>extra_headers</name>
         <name>extra_headers</name>
         <type>text</type>
         <type>text</type>
         <description>Extra Headers</description>
         <description>Extra Headers</description>

+ 5 - 4
lib/srdb1/schema/pr_watchers.xml

@@ -47,8 +47,8 @@
         <size>&domain_len;</size>
         <size>&domain_len;</size>
         <description>Watcher Domain</description>
         <description>Watcher Domain</description>
     </column>
     </column>
-	
-	<column id="event">
+
+    <column id="event">
         <name>event</name>
         <name>event</name>
         <type>string</type>
         <type>string</type>
         <size>&user_len;</size>
         <size>&user_len;</size>
@@ -58,8 +58,8 @@
 
 
     <column>
     <column>
         <name>status</name>
         <name>status</name>
-		<type>int</type>
-		<size>11</size>
+        <type>int</type>
+        <size>11</size>
         <description>Status</description>
         <description>Status</description>
     </column>
     </column>
 
 
@@ -85,4 +85,5 @@
         <colref linkend="event"/>
         <colref linkend="event"/>
         <unique/>
         <unique/>
     </index>
     </index>
+
 </table>
 </table>

+ 12 - 12
lib/srdb1/schema/pr_xcap_xml.xml

@@ -53,30 +53,30 @@
         <size>11</size>
         <size>11</size>
         <description>Document type</description>
         <description>Document type</description>
     </column>
     </column>
-	
-	<column id="etag">
+
+    <column id="etag">
         <name>etag</name>
         <name>etag</name>
         <type>string</type>
         <type>string</type>
         <size>&user_len;</size>
         <size>&user_len;</size>
         <description>Document Etag</description>
         <description>Document Etag</description>
     </column>
     </column>
 
 
-	<column id="source">
+    <column id="source">
         <name>source</name>
         <name>source</name>
         <type>int</type>
         <type>int</type>
         <size>11</size>
         <size>11</size>
         <description>Entity inserting the record</description>
         <description>Entity inserting the record</description>
     </column>
     </column>
-	
-	<column id="doc_uri">
-		<name>doc_uri</name>
+
+    <column id="doc_uri">
+        <name>doc_uri</name>
         <type>string</type>
         <type>string</type>
         <size>&uri_len;</size>
         <size>&uri_len;</size>
         <description>Document uri</description>
         <description>Document uri</description>
     </column>
     </column>
 
 
-	<column id="port">
-		<name>port</name>
+    <column id="port">
+        <name>port</name>
         <type>int</type>
         <type>int</type>
         <size>11</size>
         <size>11</size>
         <description>XCAP server port</description>
         <description>XCAP server port</description>
@@ -90,9 +90,9 @@
         <unique/>
         <unique/>
     </index>
     </index>
 
 
-	<index>
-		<name>source_xcap</name>
-		<colref linkend="source"/>
-	</index>
+    <index>
+        <name>source_xcap</name>
+        <colref linkend="source"/>
+    </index>
 
 
 </table>
 </table>

+ 12 - 13
lib/srdb1/schema/rls_presentity.xml

@@ -12,8 +12,8 @@
     <version>0</version>
     <version>0</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-		<db:para>Table for the RLS module.
-		</db:para>
+        <db:para>Table for the RLS module.
+        </db:para>
     </description>
     </description>
 
 
     <column id="id">
     <column id="id">
@@ -42,7 +42,7 @@
     </column>
     </column>
 
 
     <column>
     <column>
-		<name>content_type</name>
+        <name>content_type</name>
         <type>string</type>
         <type>string</type>
         <size>&domain_len;</size>
         <size>&domain_len;</size>
         <description>Event</description>
         <description>Event</description>
@@ -59,8 +59,8 @@
         <size>&expires_len;</size>
         <size>&expires_len;</size>
         <description>Expires</description>
         <description>Expires</description>
     </column>
     </column>
-	
-	<column id="updated">
+
+    <column id="updated">
         <name>updated</name>
         <name>updated</name>
         <type>int</type>
         <type>int</type>
         <size>&expires_len;</size>
         <size>&expires_len;</size>
@@ -73,26 +73,25 @@
         <size>&expires_len;</size>
         <size>&expires_len;</size>
         <description>Watcher authorization state</description>
         <description>Watcher authorization state</description>
     </column>
     </column>
-   
-	<column>
+
+    <column>
         <name>reason</name>
         <name>reason</name>
         <type>string</type>
         <type>string</type>
         <size>&user_len;</size>
         <size>&user_len;</size>
-		<description>reason for watcher authorization state</description>
+        <description>reason for watcher authorization state</description>
     </column>
     </column>
 
 
-
     <index>
     <index>
         <name>udid_rlspres</name>
         <name>udid_rlspres</name>
         <colref linkend="rlsubs_did"/>
         <colref linkend="rlsubs_did"/>
         <colref linkend="resource_uri"/>
         <colref linkend="resource_uri"/>
         <unique/>
         <unique/>
-	</index>
-	
-	<index>
+    </index>
+
+    <index>
         <name>u_rlspres</name>
         <name>u_rlspres</name>
         <colref linkend="updated"/>
         <colref linkend="updated"/>
         <unique/>
         <unique/>
-	</index>
+    </index>
 
 
 </table>
 </table>

+ 7 - 7
lib/srdb1/schema/rls_watchers.xml

@@ -12,8 +12,8 @@
     <version>0</version>
     <version>0</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-		<db:para>Table for RLS module used for storing resource lists subscribe
-			information.
+        <db:para>Table for RLS module used for storing resource lists subscribe
+                 information.
         </db:para>
         </db:para>
     </description>
     </description>
 
 
@@ -137,13 +137,13 @@
 
 
     <column>
     <column>
         <name>status</name>
         <name>status</name>
-		<type>int</type>
+        <type>int</type>
         <size>11</size>
         <size>11</size>
         <default>2</default>
         <default>2</default>
         <description>Status</description>
         <description>Status</description>
     </column>
     </column>
-	
-	<column>
+
+    <column>
         <name>reason</name>
         <name>reason</name>
         <type>string</type>
         <type>string</type>
         <size>&user_len;</size>
         <size>&user_len;</size>
@@ -171,8 +171,8 @@
         <size>&uri_len;</size>
         <size>&uri_len;</size>
         <description>Local contact</description>
         <description>Local contact</description>
     </column>
     </column>
-	
-	<index>
+
+    <index>
         <name>pctt_rlwatchers</name>
         <name>pctt_rlwatchers</name>
         <colref linkend="pres_uri"/>
         <colref linkend="pres_uri"/>
         <colref linkend="callid"/>
         <colref linkend="callid"/>

+ 23 - 22
lib/srdb1/schema/silo.xml

@@ -13,41 +13,41 @@
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
         <db:para> This table us used by the msilo module to provide offline message storage More information about the msilo module can be found at: &OPENSER_MOD_DOC;msilo.html
         <db:para> This table us used by the msilo module to provide offline message storage More information about the msilo module can be found at: &OPENSER_MOD_DOC;msilo.html
-	</db:para>
+        </db:para>
     </description>
     </description>
 
 
     <column id="id">
     <column id="id">
-	<name>id</name>
-	<type>unsigned int</type>
-	<size>&table_id_len;</size>
-	<autoincrement/>
-	<primary/>
-	<type db="postgres">SERIAL PRIMARY KEY</type>
-	<type db="dbtext">int,auto</type>
-	<description>unique ID</description>
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="postgres">SERIAL PRIMARY KEY</type>
+        <type db="dbtext">int,auto</type>
+        <description>unique ID</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>src_addr</name>
-	<type>string</type>
-	<size>&uri_len;</size>
+        <name>src_addr</name>
+        <type>string</type>
+        <size>&uri_len;</size>
         <default/>
         <default/>
         <description>Source address - From URI</description>
         <description>Source address - From URI</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>dst_addr</name>
-	<type>string</type>
-	<size>&uri_len;</size>
+        <name>dst_addr</name>
+        <type>string</type>
+        <size>&uri_len;</size>
         <default/>
         <default/>
         <description>Destination address - To URI</description>
         <description>Destination address - To URI</description>
     </column>
     </column>
 
 
     <column id="username">
     <column id="username">
-	<name>&USERCOL;</name>
-	<type>string</type>
-	<size>&user_len;</size>
-	<default/>
+        <name>&USERCOL;</name>
+        <type>string</type>
+        <size>&user_len;</size>
+        <default/>
         <description>SIP domain of target user</description>
         <description>SIP domain of target user</description>
     </column>
     </column>
 
 
@@ -96,8 +96,9 @@
     </column>
     </column>
 
 
     <index>
     <index>
-	<name>ud_silo</name>
-	<colref linkend="username"/>
-	<colref linkend="domain"/>
+        <name>ud_silo</name>
+        <colref linkend="username"/>
+        <colref linkend="domain"/>
     </index>
     </index>
+
 </table>
 </table>

+ 71 - 70
lib/srdb1/schema/sip_trace.xml

@@ -8,119 +8,120 @@
 ]>
 ]>
 
 
 <table id="sip_trace" xmlns:db="http://docbook.org/ns/docbook">
 <table id="sip_trace" xmlns:db="http://docbook.org/ns/docbook">
-	<name>sip_trace</name>
-	<version>1</version>
-	<type db="mysql">&MYSQL_TABLE_TYPE;</type>
-	<description>
-		<db:para>This table is used to store incoming/outgoing SIP messages in database. More informations can be found in the siptrace module documentation at: &OPENSER_MOD_DOC;siptrace.html.
-		</db:para>
-	</description>
+    <name>sip_trace</name>
+    <version>1</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>This table is used to store incoming/outgoing SIP messages in database. More informations can be found in the siptrace module documentation at: &OPENSER_MOD_DOC;siptrace.html.
+        </db:para>
+    </description>
 
 
     <column id="id">
     <column id="id">
-	<name>id</name>
-	<type>unsigned int</type>
-	<size>&table_id_len;</size>
-	<autoincrement/>
-	<primary/>
-	<type db="postgres">SERIAL PRIMARY KEY</type>
-	<type db="dbtext">int,auto</type>
-	<description>unique ID</description>
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="postgres">SERIAL PRIMARY KEY</type>
+        <type db="dbtext">int,auto</type>
+        <description>unique ID</description>
     </column>
     </column>
 
 
     <column id="date">
     <column id="date">
-	<name>date</name>
-	<type>datetime</type>
-	<default>&DEFAULT_DATETIME;</default>
-	<description>Recording date</description>
+        <name>date</name>
+        <type>datetime</type>
+        <default>&DEFAULT_DATETIME;</default>
+        <description>Recording date</description>
     </column>
     </column>
 
 
     <column id="callid">
     <column id="callid">
-	<name>callid</name>
-	<type>string</type>
-	<size>&hf_len;</size>
-	<default/>
-	<description>call ID from SIP message</description>
+        <name>callid</name>
+        <type>string</type>
+        <size>&hf_len;</size>
+        <default/>
+        <description>call ID from SIP message</description>
     </column>
     </column>
 
 
     <column id="traced_user">
     <column id="traced_user">
-	<name>traced_user</name>
-	<type>string</type>
-	<size>&uri_len;</size>
-	<default/>
-	<description>SIP URI of the user being traced</description>
+        <name>traced_user</name>
+        <type>string</type>
+        <size>&uri_len;</size>
+        <default/>
+        <description>SIP URI of the user being traced</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>msg</name>
-	<type>text</type>
-	<description>Full SIP message</description>
+        <name>msg</name>
+        <type>text</type>
+        <description>Full SIP message</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>method</name>
-	<type>string</type>
-	<size>50</size>
-	<default/>
-	<description>SIP method name</description>
+        <name>method</name>
+        <type>string</type>
+        <size>50</size>
+        <default/>
+        <description>SIP method name</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>status</name>
-	<type>string</type>
-	<size>&uri_len;</size>
-	<default/>
-	<description>SIP reply status</description>
+        <name>status</name>
+        <type>string</type>
+        <size>&uri_len;</size>
+        <default/>
+        <description>SIP reply status</description>
     </column>
     </column>
 
 
     <column id="fromip">
     <column id="fromip">
-	<name>fromip</name>
-	<type>string</type>
-	<size>&ip_add_len;</size>
-	<default/>
-	<description>Source IP address</description>
+        <name>fromip</name>
+        <type>string</type>
+        <size>&ip_add_len;</size>
+        <default/>
+        <description>Source IP address</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>toip</name>
-	<type>string</type>
-	<size>&ip_add_len;</size>
-	<default/>
-	<description>Destination IP address</description>
+        <name>toip</name>
+        <type>string</type>
+        <size>&ip_add_len;</size>
+        <default/>
+        <description>Destination IP address</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>fromtag</name>
-	<type>string</type>
-	<size>&id_len;</size>
-	<default/>
-	<description>From tag</description>
+        <name>fromtag</name>
+        <type>string</type>
+        <size>&id_len;</size>
+        <default/>
+        <description>From tag</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>direction</name>
-	<type>string</type>
-	<size>4</size>
-	<default/>
-	<description>Destination IP address</description>
+        <name>direction</name>
+        <type>string</type>
+        <size>4</size>
+        <default/>
+        <description>Destination IP address</description>
     </column>
     </column>
 
 
     <index>
     <index>
-	<name>user_idx</name>
-	<colref linkend="traced_user"/>
+        <name>user_idx</name>
+        <colref linkend="traced_user"/>
     </index>
     </index>
 
 
     <index>
     <index>
-	<name>date_id</name>
-	<colref linkend="date"/>
+        <name>date_id</name>
+        <colref linkend="date"/>
     </index>
     </index>
 
 
     <index>
     <index>
-	<name>ip_idx</name>
-	<colref linkend="fromip"/>
+        <name>ip_idx</name>
+        <colref linkend="fromip"/>
     </index>
     </index>
 
 
     <index>
     <index>
-	<name>call_id</name>
-	<colref linkend="callid"/>
+        <name>call_id</name>
+        <colref linkend="callid"/>
     </index>
     </index>
+
 </table>
 </table>

+ 22 - 21
lib/srdb1/schema/trusted.xml

@@ -14,39 +14,39 @@
     <version>4</version>
     <version>4</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-	    <db:para>This table is used by the permissions module to determine if a call has the appropriate permission to be established More information about the permissions module can be found at: &OPENSER_MOD_DOC;permissions.html
-	</db:para>
+        <db:para>This table is used by the permissions module to determine if a call has the appropriate permission to be established. More information about the permissions module can be found at: &OPENSER_MOD_DOC;permissions.html
+        </db:para>
     </description>
     </description>
 
 
     <column id="id">
     <column id="id">
-	<name>id</name>
-	<type>unsigned int</type>
-	<size>&table_id_len;</size>
-	<autoincrement/>
-	<primary/>
-	<type db="postgres">SERIAL PRIMARY KEY</type>
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="postgres">SERIAL PRIMARY KEY</type>
         <type db="dbtext">int,auto</type>
         <type db="dbtext">int,auto</type>
-	<description>unique ID</description>
+        <description>unique ID</description>
     </column>
     </column>
 
 
     <column id="src_ip">
     <column id="src_ip">
-	    <name>src_ip</name>
-	    <type>string</type>
-	    <size>&ip_add_len;</size>
-            <description>Source address is equal to source address of request</description>
+        <name>src_ip</name>
+        <type>string</type>
+        <size>&ip_add_len;</size>
+        <description>Source address is equal to source address of request</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>proto</name>
-	<type>string</type>
-	<size>4</size>
+        <name>proto</name>
+        <type>string</type>
+        <size>4</size>
         <description>Transport protocol is either "any" or equal to transport protocol of request. Possible values that can be stored are "any", "udp", "tcp", "tls", and "sctp".</description>
         <description>Transport protocol is either "any" or equal to transport protocol of request. Possible values that can be stored are "any", "udp", "tcp", "tls", and "sctp".</description>
     </column>
     </column>
 
 
     <column>
     <column>
-	<name>from_pattern</name>
-	<type>string</type>
-	<size>&id_len;</size>
+        <name>from_pattern</name>
+        <type>string</type>
+        <size>&id_len;</size>
         <default><null/></default>
         <default><null/></default>
         <null/>
         <null/>
         <description>Regular expression matches From URI of request.</description>
         <description>Regular expression matches From URI of request.</description>
@@ -61,7 +61,8 @@
     </column>
     </column>
 
 
     <index>
     <index>
-	<name>ip_addr</name>
-	<colref linkend="src_ip"/>
+        <name>ip_addr</name>
+        <colref linkend="src_ip"/>
     </index>
     </index>
+
 </table>
 </table>

+ 33 - 32
lib/srdb1/schema/uri.xml

@@ -12,57 +12,58 @@
     <version>1</version>
     <version>1</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-	    <db:para> This table is used by uri_db module to implement various SIP URI checks.
-		    More information about the uri_db module can be found at: &OPENSER_MOD_DOC;uri_db.html 
-	    </db:para>
+        <db:para>This table is used by uri_db module to implement various SIP URI checks.
+                 More information about the uri_db module can be found at: &OPENSER_MOD_DOC;uri_db.html 
+        </db:para>
     </description>
     </description>
 
 
     <column id="id">
     <column id="id">
-	<name>id</name>
-	<type>unsigned int</type>
-	<size>&table_id_len;</size>
-	<autoincrement/>
-	<primary/>
-	<type db="postgres">SERIAL PRIMARY KEY</type>
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="postgres">SERIAL PRIMARY KEY</type>
         <type db="dbtext">int,auto</type>
         <type db="dbtext">int,auto</type>
     </column>
     </column>
 
 
     <column id="username">
     <column id="username">
-	<name>&USERCOL;</name>
-	<type>string</type>
-	<size>&user_len;</size>
-	<default/>
-	<description>Username / Phone Number</description>
+        <name>&USERCOL;</name>
+        <type>string</type>
+        <size>&user_len;</size>
+        <default/>
+        <description>Username / Phone Number</description>
     </column>
     </column>
 
 
     <column id="domain">
     <column id="domain">
-	<name>domain</name>
-	<type>string</type>
-	<size>&domain_len;</size>
-	<default/>
-	<description>Domain Name</description>
+        <name>domain</name>
+        <type>string</type>
+        <size>&domain_len;</size>
+        <default/>
+        <description>Domain Name</description>
     </column>
     </column>
 
 
     <column id="uri_user">
     <column id="uri_user">
-	<name>uri_user</name>
-	<type>string</type>
-	<size>&user_len;</size>
-	<default/>
-	<description>Username / Phone Number</description>
+        <name>uri_user</name>
+        <type>string</type>
+        <size>&user_len;</size>
+        <default/>
+        <description>Username / Phone Number</description>
     </column>
     </column>
 
 
     <column>
     <column>
         <name>last_modified</name>
         <name>last_modified</name>
-	<type>datetime</type>
-	<default>&DEFAULT_DATETIME;</default>
-	<description>Date / Time this record was last modified.</description>
+        <type>datetime</type>
+        <default>&DEFAULT_DATETIME;</default>
+        <description>Date / Time this record was last modified.</description>
     </column>
     </column>
 
 
     <index>
     <index>
-	<name>udu_uri</name>
-	<colref linkend="username"/>
-	<colref linkend="domain"/>
-	<colref linkend="uri_user"/>
-	<unique/>
+        <name>udu_uri</name>
+        <colref linkend="username"/>
+        <colref linkend="domain"/>
+        <colref linkend="uri_user"/>
+        <unique/>
     </index>
     </index>
+
 </table>
 </table>

+ 2 - 1
lib/srdb1/schema/usr_preferences.xml

@@ -12,7 +12,7 @@
     <version>2</version>
     <version>2</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
     <description>
-	    <db:para>This table us used by the avpops module to implement Attribute Value Pairs (AVP's). More information about the avpops module can be found at: &OPENSER_MOD_DOC;avpops.html
+        <db:para>This table us used by the avpops module to implement Attribute Value Pairs (AVP's). More information about the avpops module can be found at: &OPENSER_MOD_DOC;avpops.html
         </db:para>
         </db:para>
     </description>
     </description>
 
 
@@ -94,4 +94,5 @@
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="attribute"/>
         <colref linkend="attribute"/>
     </index>
     </index>
+
 </table>
 </table>

+ 9 - 9
lib/srdb1/schema/version.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE table PUBLIC "-//openser.org//DTD DBSchema V1.0//EN"
 <!DOCTYPE table PUBLIC "-//openser.org//DTD DBSchema V1.0//EN"
-	  "http://openser.org/pub/openser/dbschema/dtd/1.0/dbschema.dtd"[
-  <!ENTITY % entities SYSTEM "entities.xml">
-  %entities;
+    "http://openser.org/pub/openser/dbschema/dtd/1.0/dbschema.dtd"[
+    <!ENTITY % entities SYSTEM "entities.xml">
+    %entities;
 
 
 ]>
 ]>
 
 
@@ -11,13 +11,13 @@
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
 
 
     <column id="tn">
     <column id="tn">
-	<name>table_name</name>
-	<type>string</type>
-	<size>32</size>
+        <name>table_name</name>
+        <type>string</type>
+        <size>32</size>
     </column>
     </column>
     <column id="tv">
     <column id="tv">
-	<name>table_version</name>
-	<type>unsigned int</type>
-	<default>0</default>
+        <name>table_version</name>
+        <type>unsigned int</type>
+        <default>0</default>
     </column>
     </column>
 </table>
 </table>