Răsfoiți Sursa

lib/srdb1/schema: ims_usrloc_scscf definitions

related #4100

(cherry picked from commit 283a77887c88c38a240567a7b165478775662d81)
Victor Seva 8 luni în urmă
părinte
comite
d407132aa0

+ 100 - 0
src/lib/srdb1/schema/contact.xml

@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+  <!ENTITY % entities SYSTEM "entities.xml">
+  %entities;
+
+]>
+
+<table id="contact" xmlns:db="http://docbook.org/ns/docbook">
+    <name>contact</name>
+    <version>6</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>Table for storage engine for SCSCF contacts. More information at:
+            <itemizedlist>
+                <listitem>
+                    <ulink url="&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html">&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html</ulink>.
+                </listitem>
+            </itemizedlist>
+        </db:para>
+    </description>
+
+    <column id="id">
+      <name>id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+      <autoincrement/>
+      <primary/>
+      <type db="dbtext">int,auto</type>
+      <description>Unique ID</description>
+    </column>
+
+    <column id="contact_field">
+      <name>contact</name>
+      <type>string</type>
+      <size>&contact_addr_len;</size>
+      <description>Contact</description>
+    </column>
+
+    <column id="params">
+      <name>params</name>
+      <type>string</type>
+      <size>&hf_len;</size>
+      <null/>
+      <default><null/></default>
+      <description>params</description>
+    </column>
+
+    <column id="path">
+        <name>path</name>
+        <type>string</type>
+        <size>&hf_len;</size>
+        <null/>
+        <default><null/></default>
+        <description>Path Header(s) per RFC 3327</description>
+    </column>
+
+    <column id="received">
+      <name>received</name>
+      <type>string</type>
+      <size>&hf_len;</size>
+      <null/>
+      <default><null/></default>
+      <description>Received IP:PORT in the format SIP:IP:PORT</description>
+    </column>
+
+    <column id="user_agent">
+      <name>user_agent</name>
+      <type>string</type>
+      <size>&hf_len;</size>
+      <null/>
+      <default><null/></default>
+      <description>user_agent</description>
+    </column>
+
+    <column id="expires">
+        <name>expires</name>
+        <type>datetime</type>
+        <type db="db_redis">time</type>
+        <null/>
+        <default><null/></default>
+        <description>Date and time when this entry expires.</description>
+    </column>
+
+    <column id="callid">
+      <name>callid</name>
+      <type>string</type>
+      <size>&callid_len;</size>
+      <null/>
+      <default><null/></default>
+      <description>Call-ID</description>
+    </column>
+
+    <index>
+      <name>contact</name>
+      <colref linkend="contact_field"/>
+      <unique/>
+    </index>
+</table>

+ 99 - 0
src/lib/srdb1/schema/impu.xml

@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+  <!ENTITY % entities SYSTEM "entities.xml">
+  %entities;
+
+]>
+
+<table id="impu" xmlns:db="http://docbook.org/ns/docbook">
+    <name>impu</name>
+    <version>6</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>Table for Session Control Function (SCF) in IMS. More information at:
+            <itemizedlist>
+                <listitem>
+                    <ulink url="&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html">&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html</ulink>.
+                </listitem>
+            </itemizedlist>
+        </db:para>
+    </description>
+
+    <column id="id">
+      <name>id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+      <autoincrement/>
+      <primary/>
+      <type db="dbtext">int,auto</type>
+      <description>Unique ID</description>
+    </column>
+
+    <column id="impu_field">
+      <name>impu</name>
+      <type>string</type>
+      <size>64</size>
+    </column>
+
+    <column id="barring">
+      <name>barring</name>
+      <type>int</type>
+      <size>1</size>
+      <null/>
+      <default>0</default>
+    </column>
+
+    <column id="reg_state">
+      <name>reg_state</name>
+      <type>int</type>
+      <size>11</size>
+      <null/>
+      <default>0</default>
+    </column>
+
+    <column id="ccf1">
+      <name>ccf1</name>
+      <type>string</type>
+      <size>64</size>
+      <null/>
+      <default><null/></default>
+    </column>
+
+    <column id="ccf2">
+      <name>ccf2</name>
+      <type>string</type>
+      <size>64</size>
+      <null/>
+      <default><null/></default>
+    </column>
+
+    <column id="ecf1">
+      <name>ecf1</name>
+      <type>string</type>
+      <size>64</size>
+      <null/>
+      <default><null/></default>
+    </column>
+
+    <column id="ecf2">
+      <name>ecf2</name>
+      <type>string</type>
+      <size>64</size>
+      <null/>
+      <default><null/></default>
+    </column>
+
+    <column id="ims_subscription_data">
+      <name>ims_subscription_data</name>
+      <type>binary</type>
+      <null/>
+    </column>
+
+    <index>
+      <name>impu</name>
+      <colref linkend="impu_field"/>
+      <unique/>
+	  </index>
+</table>

+ 52 - 0
src/lib/srdb1/schema/impu_contact.xml

@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+  <!ENTITY % entities SYSTEM "entities.xml">
+  %entities;
+
+]>
+
+<table id="impu_contact" xmlns:db="http://docbook.org/ns/docbook">
+    <name>impu_contact</name>
+    <version>6</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>Table for storage engine for SCSCF contacts. More information at:
+            <itemizedlist>
+                <listitem>
+                    <ulink url="&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html">&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html</ulink>.
+                </listitem>
+            </itemizedlist>
+        </db:para>
+    </description>
+
+    <column id="id">
+      <name>id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+      <autoincrement/>
+      <primary/>
+      <type db="dbtext">int,auto</type>
+      <description>Unique ID</description>
+    </column>
+
+    <column id="impu_id">
+      <name>impu_id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+    </column>
+
+    <column id="contact_id">
+      <name>contact_id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+    </column>
+
+    <index>
+      <name>impu_id</name>
+      <colref linkend="impu_id"/>
+      <colref linkend="contact_id"/>
+      <unique/>
+	  </index>
+</table>

+ 52 - 0
src/lib/srdb1/schema/impu_subscriber.xml

@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+  <!ENTITY % entities SYSTEM "entities.xml">
+  %entities;
+
+]>
+
+<table id="impu_subscriber" xmlns:db="http://docbook.org/ns/docbook">
+    <name>impu_subscriber</name>
+    <version>6</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>Table for storage engine for SCSCF contacts. More information at:
+            <itemizedlist>
+                <listitem>
+                    <ulink url="&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html">&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html</ulink>.
+                </listitem>
+            </itemizedlist>
+        </db:para>
+    </description>
+
+    <column id="id">
+      <name>id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+      <autoincrement/>
+      <primary/>
+      <type db="dbtext">int,auto</type>
+      <description>Unique ID</description>
+    </column>
+
+    <column id="impu_id">
+      <name>impu_id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+    </column>
+
+    <column id="subscriber_id">
+      <name>subscriber_id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+    </column>
+
+    <index>
+      <name>impu_id</name>
+      <colref linkend="impu_id"/>
+      <colref linkend="subscriber_id"/>
+      <unique/>
+	  </index>
+</table>

+ 16 - 0
src/lib/srdb1/schema/kamailio-ims_usrloc_scscf.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE database PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+  <!ENTITY % entities SYSTEM "entities.xml">
+  %entities;
+]>
+
+<database xmlns:xi="http://www.w3.org/2001/XInclude">
+    <name>IMS_USRLOC_SCSCF Module</name>
+    <xi:include href="contact.xml"/>
+    <xi:include href="impu.xml"/>
+    <xi:include href="impu_contact.xml"/>
+    <xi:include href="subscriber_scscf.xml"/>
+    <xi:include href="impu_subscriber.xml"/>
+</database>

+ 123 - 0
src/lib/srdb1/schema/subscriber_scscf.xml

@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+  <!ENTITY % entities SYSTEM "entities.xml">
+  %entities;
+
+]>
+
+<table id="subscriber_scscf" xmlns:db="http://docbook.org/ns/docbook">
+    <name>subscriber_scscf</name>
+    <version>6</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>Table for storage engine for SCSCF contacts. More information at:
+            <itemizedlist>
+                <listitem>
+                    <ulink url="&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html">&KAMAILIO_MOD_DOC;ims_usrloc_scscf.html</ulink>.
+                </listitem>
+            </itemizedlist>
+        </db:para>
+    </description>
+
+    <column id="id">
+      <name>id</name>
+      <type>int</type>
+      <size>&table_id_len;</size>
+      <autoincrement/>
+      <primary/>
+      <type db="dbtext">int,auto</type>
+      <description>Unique ID</description>
+    </column>
+
+    <column id="watcher_uri">
+      <name>watcher_uri</name>
+      <type>string</type>
+      <size>100</size>
+      <description>Watcher URI</description>
+    </column>
+
+    <column id="watcher_contact">
+      <name>watcher_contact</name>
+      <type>string</type>
+      <size>100</size>
+      <description>Watcher Contact</description>
+    </column>
+
+    <column id="presentity_uri">
+      <name>presentity_uri</name>
+      <type>string</type>
+      <size>100</size>
+    </column>
+
+    <column id="event">
+      <name>event</name>
+      <type>int</type>
+      <size>11</size>
+      <description>Event</description>
+    </column>
+
+    <column id="expires">
+        <name>expires</name>
+        <type>datetime</type>
+        <type db="db_redis">time</type>
+        <description>Date and time when this entry expires.</description>
+    </column>
+
+    <column id="version">
+      <name>version</name>
+      <type>int</type>
+      <size>11</size>
+      <description>Version</description>
+    </column>
+
+    <column id="local_cseq">
+      <name>local_cseq</name>
+      <type>int</type>
+      <size>11</size>
+      <description>CSeq</description>
+    </column>
+
+    <column id="call_id">
+      <name>call_id</name>
+      <type>string</type>
+      <size>50</size>
+      <description>Call-ID</description>
+    </column>
+
+    <column id="from_tag">
+      <name>from_tag</name>
+      <type>string</type>
+      <size>50</size>
+      <description>From TAG</description>
+    </column>
+
+    <column id="to_tag">
+      <name>to_tag</name>
+      <type>string</type>
+      <size>50</size>
+      <description>To TAG</description>
+    </column>
+
+    <column id="record_route">
+      <name>record_route</name>
+      <type>text</type>
+      <description>record_route</description>
+    </column>
+
+    <column id="sockinfo_str">
+      <name>sockinfo_str</name>
+      <type>string</type>
+      <size>50</size>
+      <description>sockinfo</description>
+    </column>
+
+    <index>
+      <name>contact</name>
+      <colref linkend="event"/>
+      <colref linkend="watcher_contact"/>
+      <colref linkend="presentity_uri"/>
+      <unique/>
+    </index>
+</table>