Explorar o código

lib/srdb1/schema: ims_dialog definitions

fixes #4100
Victor Seva hai 8 meses
pai
achega
ef6df94258

+ 173 - 0
src/lib/srdb1/schema/dialog_in.xml

@@ -0,0 +1,173 @@
+<?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="dialog_in" xmlns:db="http://docbook.org/ns/docbook">
+	<name>dialog_in</name>
+	<version>7</version>
+	<type db="mysql">&MYSQL_TABLE_TYPE;</type>
+	<description>
+		<db:para>Persistent dialog location information for the ims_dialog module.
+		More information can be found at:
+		<itemizedlist>
+		<listitem>
+		<ulink url="&KAMAILIO_MOD_DOC;ims_dialog.html">&KAMAILIO_MOD_DOC;ims_dialog.html</ulink>.
+		</listitem>
+		</itemizedlist>
+			</db:para>
+	</description>
+
+	<column id="id">
+		<name>id</name>
+		<type>unsigned int</type>
+		<size>&table_id_len;</size>
+		<autoincrement/>
+		<primary/>
+		<type db="dbtext">int,auto</type>
+		<description>unique ID</description>
+  </column>
+
+	<column id="hash_entry">
+		<name>hash_entry</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<description>Number of the hash entry in the dialog hash table
+		</description>
+		<natural/>
+	</column>
+
+	<column id="hash_id">
+		<name>hash_id</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<description>The ID on the hash entry</description>
+		<natural/>
+	</column>
+
+	<column>
+		<name>did</name>
+		<type>string</type>
+		<size>45</size>
+		<description></description>
+	</column>
+
+	<column>
+		<name>callid</name>
+		<type>string</type>
+		<size>&callid_len;</size>
+		<description>Call-ID of the dialog</description>
+	</column>
+
+	<column>
+		<name>from_uri</name>
+		<type>string</type>
+		<size>&uri_len;</size>
+		<description>The URI of the FROM header (as per INVITE)</description>
+	</column>
+
+	<column>
+		<name>from_tag</name>
+		<type>string</type>
+		<size>&from_tag_len;</size>
+		<description>The tag parameter serves as a general mechanism to
+		identify a dialog, which is the combination of the Call-ID along
+		with two tags, one from participant in the dialog.</description>
+	</column>
+
+	<column>
+		<name>caller_original_cseq</name>
+		<type>string</type>
+		<size>20</size>
+		<description>Last Cseq number on the caller side.</description>
+	</column>
+
+	<column>
+		<name>req_uri</name>
+		<type>string</type>
+		<size>&uri_len;</size>
+		<description>The URI of initial request in dialog</description>
+	</column>
+
+	<column>
+		<name>caller_route_set</name>
+		<type>string</type>
+		<size>&long_hf_len;</size>
+		<null/>
+		<description>Route set on the caller side.</description>
+	</column>
+
+	<column>
+		<name>caller_contact</name>
+		<type>string</type>
+		<size>&uri_len;</size>
+		<description>Caller's contact uri.</description>
+	</column>
+
+	<column>
+		<name>caller_sock</name>
+		<type>string</type>
+		<size>&domain_len;</size>
+		<description>Local socket used to communicate with caller</description>
+	</column>
+
+	<column>
+		<name>timeout</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<default>0</default>
+		<description>The timestamp (unix time) when the dialog will expire.
+		</description>
+	</column>
+
+	<column>
+		<name>state</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<description>The state of the dialog.</description>
+	</column>
+
+	<column>
+		<name>start_time</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<description>The timestamp (unix time) when the dialog was confirmed.
+		</description>
+	</column>
+
+	<column>
+		<name>sflags</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<default>0</default>
+		<description>The flags to set for dialog and accessible from config file.
+		</description>
+	</column>
+
+	<column>
+		<name>toroute_name</name>
+		<type>string</type>
+		<size>32</size>
+		<null/>
+		<description>The name of route to be executed at dialog timeout.
+		</description>
+	</column>
+
+  <column>
+		<name>toroute_index</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<description></description>
+		<natural/>
+	</column>
+
+	<index>
+		<name>hash_idx</name>
+		<colref linkend="hash_entry"/>
+		<colref linkend="hash_id"/>
+	</index>
+</table>

+ 116 - 0
src/lib/srdb1/schema/dialog_out.xml

@@ -0,0 +1,116 @@
+<?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="dialog_out" xmlns:db="http://docbook.org/ns/docbook">
+	<name>dialog_out</name>
+	<version>7</version>
+	<type db="mysql">&MYSQL_TABLE_TYPE;</type>
+	<description>
+		<db:para>Persistent dialog location information for the ims_dialog module.
+		More information can be found at:
+		<itemizedlist>
+		<listitem>
+		<ulink url="&KAMAILIO_MOD_DOC;ims_dialog.html">&KAMAILIO_MOD_DOC;ims_dialog.html</ulink>.
+		</listitem>
+		</itemizedlist>
+			</db:para>
+	</description>
+
+	<column id="id">
+		<name>id</name>
+		<type>unsigned int</type>
+		<size>&table_id_len;</size>
+		<autoincrement/>
+		<primary/>
+		<type db="dbtext">int,auto</type>
+		<description>unique ID</description>
+	</column>
+
+	<column id="hash_entry">
+		<name>hash_entry</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<description>Number of the hash entry in the dialog hash table
+		</description>
+		<natural/>
+	</column>
+
+	<column id="hash_id">
+		<name>hash_id</name>
+		<type>unsigned int</type>
+		<size>10</size>
+		<description>The ID on the hash entry</description>
+		<natural/>
+	</column>
+
+	<column>
+		<name>did</name>
+		<type>string</type>
+		<size>45</size>
+		<description></description>
+	</column>
+
+	<column>
+		<name>to_uri</name>
+		<type>string</type>
+		<size>&uri_len;</size>
+		<description>The URI of the TO header (as per INVITE)</description>
+	</column>
+
+	<column>
+		<name>to_tag</name>
+		<type>string</type>
+		<size>&to_tag_len;</size>
+		<description>The tag parameter serves as a general mechanism to
+		identify a dialog, which is the combination of the Call-ID along
+		with two tags, one from participant in the dialog.</description>
+	</column>
+
+	<column>
+		<name>caller_cseq</name>
+		<type>string</type>
+		<size>20</size>
+		<description>Last Cseq number on the caller side.</description>
+	</column>
+
+	<column>
+		<name>callee_cseq</name>
+		<type>string</type>
+		<size>20</size>
+		<description>Last Cseq number on the caller side.</description>
+	</column>
+
+	<column>
+		<name>callee_contact</name>
+		<type>string</type>
+		<size>&uri_len;</size>
+		<description>Callee's contact uri.</description>
+	</column>
+
+	<column>
+		<name>callee_route_set</name>
+		<type>string</type>
+		<size>&long_hf_len;</size>
+		<null/>
+		<description>Route set on on the caller side.</description>
+	</column>
+
+	<column>
+		<name>callee_sock</name>
+		<type>string</type>
+		<size>&domain_len;</size>
+		<description>Local socket used to communicate with callee</description>
+	</column>
+
+	<index>
+		<name>hash_idx</name>
+		<colref linkend="hash_entry"/>
+		<colref linkend="hash_id"/>
+	</index>
+</table>

+ 14 - 0
src/lib/srdb1/schema/kamailio-ims_dialog.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 DIALOG Module</name>
+    <xi:include href="dialog_in.xml"/>
+    <xi:include href="dialog_out.xml"/>
+    <xi:include href="dialog_vars.xml"/>
+</database>