Explorar o código

db_schema: Add ims_icscf db schema

(cherry picked from commit e2ea727988828a9683ef112637e25ee4d58032f7)
Xenofon Karamanos hai 11 meses
pai
achega
cfb143196d

+ 14 - 0
src/lib/srdb1/schema/kamailio-ims_icscf.xml

@@ -0,0 +1,14 @@
+<?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 ICSCF Module</name>
+    <xi:include href="nds_trusted_domains.xml"/>
+    <xi:include href="s_cscf.xml"/>
+    <xi:include href="s_cscf_capabilities.xml"/>
+</database>

+ 41 - 0
src/lib/srdb1/schema/nds_trusted_domains.xml

@@ -0,0 +1,41 @@
+<?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="nds_trusted_domains" xmlns:db="http://docbook.org/ns/docbook">
+    <name>nds_trusted_domains</name>
+    <version>1</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>Table for trusted domains in IMS. More information at:
+            <itemizedlist>
+                <listitem>
+                    <ulink url="&KAMAILIO_MOD_DOC;ims_icscf.html">&KAMAILIO_MOD_DOC;ims_icscf.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 for the trusted domain</description>
+    </column>
+
+    <column id="trusted_domain">
+        <name>trusted_domain</name>
+        <type>string</type>
+        <size>83</size>
+        <default/>
+        <description>Trusted domain name</description>
+    </column>
+</table>

+ 49 - 0
src/lib/srdb1/schema/s_cscf.xml

@@ -0,0 +1,49 @@
+<?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="s_cscf" xmlns:db="http://docbook.org/ns/docbook">
+    <name>s_cscf</name>
+    <version>1</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_icscf.html">&KAMAILIO_MOD_DOC;ims_icscf.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 for the SCF</description>
+    </column>
+
+    <column id="name">
+        <name>name</name>
+        <type>string</type>
+        <size>83</size>
+        <default/>
+        <description>Name of the SCF</description>
+    </column>
+
+    <column id="s_cscf_uri">
+        <name>s_cscf_uri</name>
+        <type>string</type>
+        <size>83</size>
+        <default/>
+        <description>URI of the SCF</description>
+    </column>
+</table>

+ 58 - 0
src/lib/srdb1/schema/s_cscf_capabilities.xml

@@ -0,0 +1,58 @@
+<?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="s_cscf_capabilities" xmlns:db="http://docbook.org/ns/docbook">
+    <name>s_cscf_capabilities</name>
+    <version>1</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>Table for SCF capabilities in IMS. More information at:
+            <itemizedlist>
+                <listitem>
+                    <ulink url="&KAMAILIO_MOD_DOC;ims_icscf.html">&KAMAILIO_MOD_DOC;ims_icscf.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 for the capability</description>
+    </column>
+
+    <column id="id_s_cscf">
+        <name>id_s_cscf</name>
+        <type>int</type>
+        <size>11</size>
+        <default>0</default>
+        <description>ID of the associated SCF</description>
+    </column>
+
+    <column id="capability">
+        <name>capability</name>
+        <type>int</type>
+        <size>11</size>
+        <default>0</default>
+        <description>Capability value</description>
+    </column>
+
+    <index>
+        <name>idx_capability</name>
+        <colref linkend="capability"/>
+    </index>
+    <index>
+        <name>idx_id_s_cscf</name>
+        <colref linkend="id_s_cscf"/>
+    </index>
+</table>

+ 2 - 2
utils/kamctl/kamdbctl.base

@@ -42,7 +42,7 @@ EXTRA_TABLES=${EXTRA_TABLES:-'imc_members imc_rooms cpl sip_trace domainpolicy
 		carrierroute carrier_name domain_name carrierfailureroute userblocklist
 		globalblocklist htable purplemap uacreg pl_pipes mtree mtrees
 		sca_subscriptions mohqcalls mohqueues rtpproxy rtpengine
-		dr_gateways dr_rules dr_gw_lists dr_groups secfilter'}
+		dr_gateways dr_rules dr_gw_lists dr_groups secfilter nds_trusted_domains s_cscf s_cscf_capabilities'}
 PRESENCE_TABLES=${PRESENCE_TABLES:-'presentity active_watchers watchers xcap
 		pua rls_presentity rls_watchers'}
 DBUID_TABLES=${UID_TABLES:-'uid_credentials uid_domain uid_domain_attrs
@@ -77,7 +77,7 @@ PRESENCE_MODULES=${PRESENCE_MODULES:-'presence rls'}
 
 EXTRA_MODULES=${EXTRA_MODULES:-'imc cpl siptrace domainpolicy carrierroute
 		drouting userblocklist htable purple uac pipelimit mtree sca mohqueue
-		rtpproxy rtpengine secfilter'}
+		rtpproxy rtpengine secfilter ims_icscf'}
 
 DBUID_MODULES=${UID_MODULES:-'uid_auth_db uid_avp_db uid_domain uid_gflags
 		uid_uri_db'}