Browse code

mohqueue schema files

Robert Boisvert authored on 03/10/2013 15:36:08
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<!DOCTYPE database PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
2
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
3
+
4
+<!ENTITY % entities SYSTEM "entities.xml">
5
+%entities;
6
+
7
+]>
8
+
9
+<database xmlns:xi="http://www.w3.org/2001/XInclude">
10
+    <name>mohqueue</name>
11
+    <xi:include href="mohqcalls.xml"/>
12
+    <xi:include href="mohqueues.xml"/>
13
+</database>
0 14
new file mode 100644
... ...
@@ -0,0 +1,76 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN" 
2
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
3
+
4
+<!ENTITY % entities SYSTEM "entities.xml">
5
+%entities;
6
+
7
+]>
8
+
9
+<table id="mohqcalls" xmlns:db="http://docbook.org/ns/docbook">
10
+  <name>mohqcalls</name>
11
+  <version>1</version>
12
+  <type db="mysql">&MYSQL_TABLE_TYPE;</type>
13
+  <description>
14
+    <db:para>This table is used by the mohqueue module to store call information. This is a read-only table from the viewpoint of outside processes. More information about the mohqueue module can be found at: &KAMAILIO_MOD_DOC;mohqueue.html
15
+    </db:para>
16
+  </description>
17
+
18
+  <column id="id">
19
+    <name>id</name>
20
+    <type>unsigned int</type>
21
+    <size>&table_id_len;</size>
22
+    <autoincrement/>
23
+    <primary/>
24
+    <type db="dbtext">int,auto</type>
25
+    <description>Unique ID</description>
26
+  </column>
27
+
28
+  <column id="mohq_id">
29
+    <name>mohq_id</name>
30
+    <type>unsigned int</type>
31
+    <size>&table_id_len;</size>
32
+    <description>queue id</description>
33
+  </column>
34
+
35
+  <column id="call_id">
36
+    <name>call_id</name>
37
+    <type>string</type>
38
+    <size>100</size>
39
+    <description>Call-ID header</description>
40
+  </column>
41
+
42
+  <column id="call_status">
43
+    <name>call_status</name>
44
+    <type>unsigned int</type>
45
+    <description>status of call</description>
46
+  </column>
47
+
48
+  <column id="call_from">
49
+    <name>call_from</name>
50
+    <type>string</type>
51
+    <size>100</size>
52
+    <description>From header</description>
53
+  </column>
54
+
55
+  <column id="call_contact">
56
+    <name>call_contact</name>
57
+    <type>string</type>
58
+    <size>100</size>
59
+    <null/>
60
+    <description>Contact header</description>
61
+  </column>
62
+
63
+  <column id="call_time">
64
+    <name>call_time</name>
65
+    <type>datetime</type>
66
+    <default db="oracle">to_date('','yyyy-mm-dd hh24:mi:ss')</default>
67
+    <description>time when call first entered queue</description>
68
+  </column>
69
+
70
+  <index>
71
+    <name>mohqcalls_idx</name>
72
+    <colref linkend="call_id" />
73
+    <unique/>
74
+  </index>
75
+</table>
0 76
new file mode 100644
... ...
@@ -0,0 +1,75 @@
0
+<?xml version="1.0" encoding="UTF-8"?>
1
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN" 
2
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
3
+
4
+<!ENTITY % entities SYSTEM "entities.xml">
5
+%entities;
6
+
7
+]>
8
+
9
+<table id="mohqueues" xmlns:db="http://docbook.org/ns/docbook">
10
+  <name>mohqueues</name>
11
+  <version>1</version>
12
+  <type db="mysql">&MYSQL_TABLE_TYPE;</type>
13
+  <description>
14
+    <db:para>This table is used by the mohqueue module to store queue definitions. This is a read-only table from the viewpoint of the module. More information about the mohqueue module can be found at: &KAMAILIO_MOD_DOC;mohqueue.html
15
+    </db:para>
16
+  </description>
17
+
18
+  <column id="id">
19
+    <name>id</name>
20
+    <type>unsigned int</type>
21
+    <size>&table_id_len;</size>
22
+    <autoincrement/>
23
+    <primary/>
24
+    <type db="dbtext">int,auto</type>
25
+    <description>Unique ID</description>
26
+  </column>
27
+
28
+  <column id="name">
29
+    <name>name</name>
30
+    <type>string</type>
31
+    <size>25</size>
32
+    <description>queue name</description>
33
+  </column>
34
+
35
+  <column id="uri">
36
+    <name>uri</name>
37
+    <type>string</type>
38
+    <size>100</size>
39
+    <description>URI for the queue</description>
40
+  </column>
41
+
42
+  <column id="mohdir">
43
+    <name>mohdir</name>
44
+    <type>string</type>
45
+    <size>100</size>
46
+    <null/>
47
+    <description>directory for MOH files</description>
48
+  </column>
49
+
50
+  <column id="mohfile">
51
+    <name>mohfile</name>
52
+    <type>string</type>
53
+    <size>100</size>
54
+    <description>base name for the MOH file</description>
55
+  </column>
56
+
57
+  <column id="debug">
58
+    <name>debug</name>
59
+    <type>int</type>
60
+    <description>debug flag</description>
61
+  </column>
62
+
63
+  <index>
64
+    <name>mohqueue_uri_idx</name>
65
+    <colref linkend="uri" />
66
+    <unique/>
67
+  </index>
68
+
69
+  <index>
70
+    <name>mohqueue_name_idx</name>
71
+    <colref linkend="name" />
72
+    <unique/>
73
+  </index>
74
+</table>