Browse Source

utils/kamctl: regenerate db table definitions

Victor Seva 8 tháng trước cách đây
mục cha
commit
c8290b8f4c

+ 10 - 0
utils/kamctl/db_berkeley/kamailio/dialog_in

@@ -0,0 +1,10 @@
+METADATA_COLUMNS
+id(int) hash_entry(int) hash_id(int) did(str) callid(str) from_uri(str) from_tag(str) caller_original_cseq(str) req_uri(str) caller_route_set(str) caller_contact(str) caller_sock(str) timeout(int) state(int) start_time(int) sflags(int) toroute_name(str) toroute_index(int)
+METADATA_KEY
+1 2 17
+METADATA_READONLY
+0
+METADATA_LOGFLAGS
+0
+METADATA_DEFAULTS
+NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|0|NIL|NIL|0|NIL|NIL

+ 10 - 0
utils/kamctl/db_berkeley/kamailio/dialog_out

@@ -0,0 +1,10 @@
+METADATA_COLUMNS
+id(int) hash_entry(int) hash_id(int) did(str) to_uri(str) to_tag(str) caller_cseq(str) callee_cseq(str) callee_contact(str) callee_route_set(str) callee_sock(str)
+METADATA_KEY
+1 2
+METADATA_READONLY
+0
+METADATA_LOGFLAGS
+0
+METADATA_DEFAULTS
+NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL

+ 5 - 1
utils/kamctl/db_berkeley/kamailio/version

@@ -1,7 +1,7 @@
 METADATA_COLUMNS
 id(int) table_name(str) table_version(int)
 METADATA_KEY
-1 
+1
 METADATA_READONLY
 0
 METADATA_LOGFLAGS
@@ -32,6 +32,10 @@ dbaliases|
 dbaliases|1
 dialog|
 dialog|7
+dialog_in|
+dialog_in|7
+dialog_out|
+dialog_out|7
 dialog_vars|
 dialog_vars|1
 dialplan|

+ 2 - 0
utils/kamctl/db_redis/kamailio/dialog_in

@@ -0,0 +1,2 @@
+id/int,hash_entry/int,hash_id/int,did/string,callid/string,from_uri/string,from_tag/string,caller_original_cseq/string,req_uri/string,caller_route_set/string,caller_contact/string,caller_sock/string,timeout/int,state/int,start_time/int,sflags/int,toroute_name/string,toroute_index/int,
+7

+ 2 - 0
utils/kamctl/db_redis/kamailio/dialog_out

@@ -0,0 +1,2 @@
+id/int,hash_entry/int,hash_id/int,did/string,to_uri/string,to_tag/string,caller_cseq/string,callee_cseq/string,callee_contact/string,callee_route_set/string,callee_sock/string,
+7

+ 54 - 0
utils/kamctl/db_sqlite/ims_dialog-create.sql

@@ -0,0 +1,54 @@
+CREATE TABLE dialog_in (
+    id INTEGER PRIMARY KEY NOT NULL,
+    hash_entry INTEGER NOT NULL,
+    hash_id INTEGER NOT NULL,
+    did VARCHAR(45) NOT NULL,
+    callid VARCHAR(255) NOT NULL,
+    from_uri VARCHAR(255) NOT NULL,
+    from_tag VARCHAR(128) NOT NULL,
+    caller_original_cseq VARCHAR(20) NOT NULL,
+    req_uri VARCHAR(255) NOT NULL,
+    caller_route_set VARCHAR(512),
+    caller_contact VARCHAR(255) NOT NULL,
+    caller_sock VARCHAR(64) NOT NULL,
+    timeout INTEGER DEFAULT 0 NOT NULL,
+    state INTEGER NOT NULL,
+    start_time INTEGER NOT NULL,
+    sflags INTEGER DEFAULT 0 NOT NULL,
+    toroute_name VARCHAR(32),
+    toroute_index INTEGER NOT NULL
+);
+
+CREATE INDEX dialog_in_hash_idx ON dialog_in (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_in','7');
+
+CREATE TABLE dialog_out (
+    id INTEGER PRIMARY KEY NOT NULL,
+    hash_entry INTEGER NOT NULL,
+    hash_id INTEGER NOT NULL,
+    did VARCHAR(45) NOT NULL,
+    to_uri VARCHAR(255) NOT NULL,
+    to_tag VARCHAR(128) NOT NULL,
+    caller_cseq VARCHAR(20) NOT NULL,
+    callee_cseq VARCHAR(20) NOT NULL,
+    callee_contact VARCHAR(255) NOT NULL,
+    callee_route_set VARCHAR(512),
+    callee_sock VARCHAR(64) NOT NULL
+);
+
+CREATE INDEX dialog_out_hash_idx ON dialog_out (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_out','7');
+
+CREATE TABLE dialog_vars (
+    id INTEGER PRIMARY KEY NOT NULL,
+    hash_entry INTEGER NOT NULL,
+    hash_id INTEGER NOT NULL,
+    dialog_key VARCHAR(128) NOT NULL,
+    dialog_value VARCHAR(512) NOT NULL
+);
+
+CREATE INDEX dialog_vars_hash_idx ON dialog_vars (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_vars','1');

+ 1 - 0
utils/kamctl/dbtext/kamailio/dialog_in

@@ -0,0 +1 @@
+id(int,auto) hash_entry(int) hash_id(int) did(string) callid(string) from_uri(string) from_tag(string) caller_original_cseq(string) req_uri(string) caller_route_set(string,null) caller_contact(string) caller_sock(string) timeout(int) state(int) start_time(int) sflags(int) toroute_name(string,null) toroute_index(int)

+ 1 - 0
utils/kamctl/dbtext/kamailio/dialog_out

@@ -0,0 +1 @@
+id(int,auto) hash_entry(int) hash_id(int) did(string) to_uri(string) to_tag(string) caller_cseq(string) callee_cseq(string) callee_contact(string) callee_route_set(string,null) callee_sock(string)

+ 3 - 1
utils/kamctl/dbtext/kamailio/version

@@ -1,4 +1,4 @@
-id(int,auto) table_name(string) table_version(int) 
+id(int,auto) table_name(string) table_version(int)
 0:version:1
 0:acc:5
 0:acc_cdrs:2
@@ -11,6 +11,8 @@ id(int,auto) table_name(string) table_version(int)
 0:cpl:1
 0:dbaliases:1
 0:dialog:7
+0:dialog_in:7
+0:dialog_out:7
 0:dialog_vars:1
 0:dialplan:2
 0:dispatcher:4

+ 96 - 0
utils/kamctl/mongodb/kamailio/dialog_in.json

@@ -0,0 +1,96 @@
+{
+  "name": "dialog_in",
+  "version": 7,
+  "columns": [
+    "id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "hash_entry": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "hash_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "did": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "callid": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "from_uri": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "from_tag": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "caller_original_cseq": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "req_uri": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "caller_route_set": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "caller_contact": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "caller_sock": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "timeout": {
+      "type": "int",
+      "default": 0,
+      "null": false
+    },
+    "state": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "start_time": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "sflags": {
+      "type": "int",
+      "default": 0,
+      "null": false
+    },
+    "toroute_name": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "toroute_index": {
+      "type": "int",
+      "default": null,
+      "null": false
+    }
+  ]
+}

+ 61 - 0
utils/kamctl/mongodb/kamailio/dialog_out.json

@@ -0,0 +1,61 @@
+{
+  "name": "dialog_out",
+  "version": 7,
+  "columns": [
+    "id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "hash_entry": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "hash_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "did": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "to_uri": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "to_tag": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "caller_cseq": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "callee_cseq": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "callee_contact": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "callee_route_set": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "callee_sock": {
+      "type": "string",
+      "default": null,
+      "null": false
+    }
+  ]
+}

+ 2 - 0
utils/kamctl/mongodb/kamailio/version-create.mongo

@@ -11,6 +11,8 @@ db.getCollection("version").insert({ table_name: "carrierroute", table_version:
 db.getCollection("version").insert({ table_name: "cpl", table_version: NumberInt(1) });
 db.getCollection("version").insert({ table_name: "dbaliases", table_version: NumberInt(1) });
 db.getCollection("version").insert({ table_name: "dialog", table_version: NumberInt(7) });
+db.getCollection("version").insert({ table_name: "dialog_in", table_version: NumberInt(7) });
+db.getCollection("version").insert({ table_name: "dialog_out", table_version: NumberInt(7) });
 db.getCollection("version").insert({ table_name: "dialog_vars", table_version: NumberInt(1) });
 db.getCollection("version").insert({ table_name: "dialplan", table_version: NumberInt(2) });
 db.getCollection("version").insert({ table_name: "dispatcher", table_version: NumberInt(4) });

+ 44 - 42
utils/kamctl/mysql/ims_dialog-create.sql

@@ -1,52 +1,54 @@
-INSERT INTO version (table_name, table_version) values ('dialog_in', 7), ('dialog_out', 7), ('dialog_vars', 7);
-
 CREATE TABLE `dialog_in` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `hash_entry` int(10) unsigned NOT NULL,
-  `hash_id` int(10) unsigned NOT NULL,
-  `did` varchar(45) NOT NULL,
-  `callid` varchar(255) NOT NULL,
-  `from_uri` varchar(128) NOT NULL,
-  `from_tag` varchar(64) NOT NULL,
-  `caller_original_cseq` varchar(20) NOT NULL,
-  `req_uri` varchar(128) NOT NULL,
-  `caller_route_set` varchar(512) DEFAULT NULL,
-  `caller_contact` varchar(128) NOT NULL,
-  `caller_sock` varchar(64) NOT NULL,
-  `state` int(10) unsigned NOT NULL,
-  `start_time` int(10) unsigned NOT NULL,
-  `timeout` int(10) unsigned NOT NULL DEFAULT '0',
-  `sflags` int(10) unsigned NOT NULL DEFAULT '0',
-  `toroute_name` varchar(32) DEFAULT NULL,
-  `toroute_index` int(11) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `hash_idx` (`hash_entry`,`hash_id`)
+    `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `hash_entry` INT(10) UNSIGNED NOT NULL,
+    `hash_id` INT(10) UNSIGNED NOT NULL,
+    `did` VARCHAR(45) NOT NULL,
+    `callid` VARCHAR(255) NOT NULL,
+    `from_uri` VARCHAR(255) NOT NULL,
+    `from_tag` VARCHAR(128) NOT NULL,
+    `caller_original_cseq` VARCHAR(20) NOT NULL,
+    `req_uri` VARCHAR(255) NOT NULL,
+    `caller_route_set` VARCHAR(512),
+    `caller_contact` VARCHAR(255) NOT NULL,
+    `caller_sock` VARCHAR(64) NOT NULL,
+    `timeout` INT(10) UNSIGNED DEFAULT 0 NOT NULL,
+    `state` INT(10) UNSIGNED NOT NULL,
+    `start_time` INT(10) UNSIGNED NOT NULL,
+    `sflags` INT(10) UNSIGNED DEFAULT 0 NOT NULL,
+    `toroute_name` VARCHAR(32),
+    `toroute_index` INT(10) UNSIGNED NOT NULL
 );
 
+CREATE INDEX hash_idx ON dialog_in (`hash_entry`, `hash_id`);
+
+INSERT INTO version (table_name, table_version) values ('dialog_in','7');
+
 CREATE TABLE `dialog_out` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `hash_entry` int(11) NOT NULL,
-  `hash_id` int(11) NOT NULL,
-  `did` varchar(45) NOT NULL,
-  `to_uri` varchar(128) NOT NULL,
-  `to_tag` varchar(64) NOT NULL,
-  `caller_cseq` varchar(20) NOT NULL,
-  `callee_cseq` varchar(20) NOT NULL,
-  `callee_contact` varchar(128) NOT NULL,
-  `callee_route_set` varchar(512) DEFAULT NULL,
-  `callee_sock` varchar(64) NOT NULL,
-  PRIMARY KEY (`id`)
+    `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `hash_entry` INT(10) UNSIGNED NOT NULL,
+    `hash_id` INT(10) UNSIGNED NOT NULL,
+    `did` VARCHAR(45) NOT NULL,
+    `to_uri` VARCHAR(255) NOT NULL,
+    `to_tag` VARCHAR(128) NOT NULL,
+    `caller_cseq` VARCHAR(20) NOT NULL,
+    `callee_cseq` VARCHAR(20) NOT NULL,
+    `callee_contact` VARCHAR(255) NOT NULL,
+    `callee_route_set` VARCHAR(512),
+    `callee_sock` VARCHAR(64) NOT NULL
 );
 
+CREATE INDEX hash_idx ON dialog_out (`hash_entry`, `hash_id`);
+
+INSERT INTO version (table_name, table_version) values ('dialog_out','7');
+
 CREATE TABLE `dialog_vars` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `hash_entry` int(10) unsigned NOT NULL,
-  `hash_id` int(10) unsigned NOT NULL,
-  `dialog_key` varchar(128) NOT NULL,
-  `dialog_value` varchar(512) NOT NULL,
-  PRIMARY KEY (`id`),
-  KEY `hash_idx` (`hash_entry`,`hash_id`)
+    `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `hash_entry` INT(10) UNSIGNED NOT NULL,
+    `hash_id` INT(10) UNSIGNED NOT NULL,
+    `dialog_key` VARCHAR(128) NOT NULL,
+    `dialog_value` VARCHAR(512) NOT NULL
 );
 
+CREATE INDEX hash_idx ON dialog_vars (`hash_entry`, `hash_id`);
 
-
+INSERT INTO version (table_name, table_version) values ('dialog_vars','1');

+ 78 - 0
utils/kamctl/oracle/ims_dialog-create.sql

@@ -0,0 +1,78 @@
+CREATE TABLE dialog_in (
+    id NUMBER(10) PRIMARY KEY,
+    hash_entry NUMBER(10),
+    hash_id NUMBER(10),
+    did VARCHAR2(45),
+    callid VARCHAR2(255),
+    from_uri VARCHAR2(255),
+    from_tag VARCHAR2(128),
+    caller_original_cseq VARCHAR2(20),
+    req_uri VARCHAR2(255),
+    caller_route_set VARCHAR2(512),
+    caller_contact VARCHAR2(255),
+    caller_sock VARCHAR2(64),
+    timeout NUMBER(10) DEFAULT 0 NOT NULL,
+    state NUMBER(10),
+    start_time NUMBER(10),
+    sflags NUMBER(10) DEFAULT 0 NOT NULL,
+    toroute_name VARCHAR2(32),
+    toroute_index NUMBER(10)
+);
+
+CREATE OR REPLACE TRIGGER dialog_in_tr
+before insert on dialog_in FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END dialog_in_tr;
+/
+BEGIN map2users('dialog_in'); END;
+/
+CREATE INDEX dialog_in_hash_idx  ON dialog_in (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_in','7');
+
+CREATE TABLE dialog_out (
+    id NUMBER(10) PRIMARY KEY,
+    hash_entry NUMBER(10),
+    hash_id NUMBER(10),
+    did VARCHAR2(45),
+    to_uri VARCHAR2(255),
+    to_tag VARCHAR2(128),
+    caller_cseq VARCHAR2(20),
+    callee_cseq VARCHAR2(20),
+    callee_contact VARCHAR2(255),
+    callee_route_set VARCHAR2(512),
+    callee_sock VARCHAR2(64)
+);
+
+CREATE OR REPLACE TRIGGER dialog_out_tr
+before insert on dialog_out FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END dialog_out_tr;
+/
+BEGIN map2users('dialog_out'); END;
+/
+CREATE INDEX dialog_out_hash_idx  ON dialog_out (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_out','7');
+
+CREATE TABLE dialog_vars (
+    id NUMBER(10) PRIMARY KEY,
+    hash_entry NUMBER(10),
+    hash_id NUMBER(10),
+    dialog_key VARCHAR2(128),
+    dialog_value VARCHAR2(512)
+);
+
+CREATE OR REPLACE TRIGGER dialog_vars_tr
+before insert on dialog_vars FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END dialog_vars_tr;
+/
+BEGIN map2users('dialog_vars'); END;
+/
+CREATE INDEX dialog_vars_hash_idx  ON dialog_vars (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_vars','1');

+ 54 - 0
utils/kamctl/postgres/ims_dialog-create.sql

@@ -0,0 +1,54 @@
+CREATE TABLE dialog_in (
+    id SERIAL PRIMARY KEY NOT NULL,
+    hash_entry INTEGER NOT NULL,
+    hash_id INTEGER NOT NULL,
+    did VARCHAR(45) NOT NULL,
+    callid VARCHAR(255) NOT NULL,
+    from_uri VARCHAR(255) NOT NULL,
+    from_tag VARCHAR(128) NOT NULL,
+    caller_original_cseq VARCHAR(20) NOT NULL,
+    req_uri VARCHAR(255) NOT NULL,
+    caller_route_set VARCHAR(512),
+    caller_contact VARCHAR(255) NOT NULL,
+    caller_sock VARCHAR(64) NOT NULL,
+    timeout INTEGER DEFAULT 0 NOT NULL,
+    state INTEGER NOT NULL,
+    start_time INTEGER NOT NULL,
+    sflags INTEGER DEFAULT 0 NOT NULL,
+    toroute_name VARCHAR(32),
+    toroute_index INTEGER NOT NULL
+);
+
+CREATE INDEX dialog_in_hash_idx ON dialog_in (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_in','7');
+
+CREATE TABLE dialog_out (
+    id SERIAL PRIMARY KEY NOT NULL,
+    hash_entry INTEGER NOT NULL,
+    hash_id INTEGER NOT NULL,
+    did VARCHAR(45) NOT NULL,
+    to_uri VARCHAR(255) NOT NULL,
+    to_tag VARCHAR(128) NOT NULL,
+    caller_cseq VARCHAR(20) NOT NULL,
+    callee_cseq VARCHAR(20) NOT NULL,
+    callee_contact VARCHAR(255) NOT NULL,
+    callee_route_set VARCHAR(512),
+    callee_sock VARCHAR(64) NOT NULL
+);
+
+CREATE INDEX dialog_out_hash_idx ON dialog_out (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_out','7');
+
+CREATE TABLE dialog_vars (
+    id SERIAL PRIMARY KEY NOT NULL,
+    hash_entry INTEGER NOT NULL,
+    hash_id INTEGER NOT NULL,
+    dialog_key VARCHAR(128) NOT NULL,
+    dialog_value VARCHAR(512) NOT NULL
+);
+
+CREATE INDEX dialog_vars_hash_idx ON dialog_vars (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('dialog_vars','1');

+ 189 - 0
utils/kamctl/xhttp_pi/ims_dialog-mod

@@ -0,0 +1,189 @@
+	<!-- dialog_in provisioning -->
+	<mod><mod_name>dialog_in</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>dialog_in</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>callid</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>caller_original_cseq</field></col>
+				<col><field>req_uri</field></col>
+				<col><field>caller_route_set</field></col>
+				<col><field>caller_contact</field></col>
+				<col><field>caller_sock</field></col>
+				<col><field>timeout</field></col>
+				<col><field>state</field></col>
+				<col><field>start_time</field></col>
+				<col><field>sflags</field></col>
+				<col><field>toroute_name</field></col>
+				<col><field>toroute_index</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialog_in</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>callid</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>caller_original_cseq</field></col>
+				<col><field>req_uri</field></col>
+				<col><field>caller_route_set</field></col>
+				<col><field>caller_contact</field></col>
+				<col><field>caller_sock</field></col>
+				<col><field>timeout</field></col>
+				<col><field>state</field></col>
+				<col><field>start_time</field></col>
+				<col><field>sflags</field></col>
+				<col><field>toroute_name</field></col>
+				<col><field>toroute_index</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialog_in</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>callid</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>caller_original_cseq</field></col>
+				<col><field>req_uri</field></col>
+				<col><field>caller_route_set</field></col>
+				<col><field>caller_contact</field></col>
+				<col><field>caller_sock</field></col>
+				<col><field>timeout</field></col>
+				<col><field>state</field></col>
+				<col><field>start_time</field></col>
+				<col><field>sflags</field></col>
+				<col><field>toroute_name</field></col>
+				<col><field>toroute_index</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialog_in</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- dialog_out provisioning -->
+	<mod><mod_name>dialog_out</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>dialog_out</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>to_uri</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>caller_cseq</field></col>
+				<col><field>callee_cseq</field></col>
+				<col><field>callee_contact</field></col>
+				<col><field>callee_route_set</field></col>
+				<col><field>callee_sock</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialog_out</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>to_uri</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>caller_cseq</field></col>
+				<col><field>callee_cseq</field></col>
+				<col><field>callee_contact</field></col>
+				<col><field>callee_route_set</field></col>
+				<col><field>callee_sock</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialog_out</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>to_uri</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>caller_cseq</field></col>
+				<col><field>callee_cseq</field></col>
+				<col><field>callee_contact</field></col>
+				<col><field>callee_route_set</field></col>
+				<col><field>callee_sock</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialog_out</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- dialog_vars provisioning -->
+	<mod><mod_name>dialog_vars</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>dialog_key</field></col>
+				<col><field>dialog_value</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>dialog_key</field></col>
+				<col><field>dialog_value</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>dialog_key</field></col>
+				<col><field>dialog_value</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>

+ 49 - 0
utils/kamctl/xhttp_pi/ims_dialog-table

@@ -0,0 +1,49 @@
+	<!-- Declaration of dialog_in table-->
+	<db_table id="dialog_in">
+		<table_name>dialog_in</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>hash_entry</field><type>DB1_INT</type></column>
+		<column><field>hash_id</field><type>DB1_INT</type></column>
+		<column><field>did</field><type>DB1_STR</type></column>
+		<column><field>callid</field><type>DB1_STR</type></column>
+		<column><field>from_uri</field><type>DB1_STR</type></column>
+		<column><field>from_tag</field><type>DB1_STR</type></column>
+		<column><field>caller_original_cseq</field><type>DB1_STR</type></column>
+		<column><field>req_uri</field><type>DB1_STR</type></column>
+		<column><field>caller_route_set</field><type>DB1_STR</type></column>
+		<column><field>caller_contact</field><type>DB1_STR</type></column>
+		<column><field>caller_sock</field><type>DB1_STR</type></column>
+		<column><field>timeout</field><type>DB1_INT</type></column>
+		<column><field>state</field><type>DB1_INT</type></column>
+		<column><field>start_time</field><type>DB1_INT</type></column>
+		<column><field>sflags</field><type>DB1_INT</type></column>
+		<column><field>toroute_name</field><type>DB1_STR</type></column>
+		<column><field>toroute_index</field><type>DB1_INT</type></column>
+	</db_table>
+	<!-- Declaration of dialog_out table-->
+	<db_table id="dialog_out">
+		<table_name>dialog_out</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>hash_entry</field><type>DB1_INT</type></column>
+		<column><field>hash_id</field><type>DB1_INT</type></column>
+		<column><field>did</field><type>DB1_STR</type></column>
+		<column><field>to_uri</field><type>DB1_STR</type></column>
+		<column><field>to_tag</field><type>DB1_STR</type></column>
+		<column><field>caller_cseq</field><type>DB1_STR</type></column>
+		<column><field>callee_cseq</field><type>DB1_STR</type></column>
+		<column><field>callee_contact</field><type>DB1_STR</type></column>
+		<column><field>callee_route_set</field><type>DB1_STR</type></column>
+		<column><field>callee_sock</field><type>DB1_STR</type></column>
+	</db_table>
+	<!-- Declaration of dialog_vars table-->
+	<db_table id="dialog_vars">
+		<table_name>dialog_vars</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>hash_entry</field><type>DB1_INT</type></column>
+		<column><field>hash_id</field><type>DB1_INT</type></column>
+		<column><field>dialog_key</field><type>DB1_STR</type></column>
+		<column><field>dialog_value</field><type>DB1_STR</type></column>
+	</db_table>

+ 238 - 0
utils/kamctl/xhttp_pi/pi_framework.xml

@@ -341,6 +341,55 @@
 		<column><field>room</field><type>DB1_STR</type></column>
 		<column><field>flag</field><type>DB1_INT</type></column>
 	</db_table>
+	<!-- Declaration of dialog_in table-->
+	<db_table id="dialog_in">
+		<table_name>dialog_in</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>hash_entry</field><type>DB1_INT</type></column>
+		<column><field>hash_id</field><type>DB1_INT</type></column>
+		<column><field>did</field><type>DB1_STR</type></column>
+		<column><field>callid</field><type>DB1_STR</type></column>
+		<column><field>from_uri</field><type>DB1_STR</type></column>
+		<column><field>from_tag</field><type>DB1_STR</type></column>
+		<column><field>caller_original_cseq</field><type>DB1_STR</type></column>
+		<column><field>req_uri</field><type>DB1_STR</type></column>
+		<column><field>caller_route_set</field><type>DB1_STR</type></column>
+		<column><field>caller_contact</field><type>DB1_STR</type></column>
+		<column><field>caller_sock</field><type>DB1_STR</type></column>
+		<column><field>timeout</field><type>DB1_INT</type></column>
+		<column><field>state</field><type>DB1_INT</type></column>
+		<column><field>start_time</field><type>DB1_INT</type></column>
+		<column><field>sflags</field><type>DB1_INT</type></column>
+		<column><field>toroute_name</field><type>DB1_STR</type></column>
+		<column><field>toroute_index</field><type>DB1_INT</type></column>
+	</db_table>
+	<!-- Declaration of dialog_out table-->
+	<db_table id="dialog_out">
+		<table_name>dialog_out</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>hash_entry</field><type>DB1_INT</type></column>
+		<column><field>hash_id</field><type>DB1_INT</type></column>
+		<column><field>did</field><type>DB1_STR</type></column>
+		<column><field>to_uri</field><type>DB1_STR</type></column>
+		<column><field>to_tag</field><type>DB1_STR</type></column>
+		<column><field>caller_cseq</field><type>DB1_STR</type></column>
+		<column><field>callee_cseq</field><type>DB1_STR</type></column>
+		<column><field>callee_contact</field><type>DB1_STR</type></column>
+		<column><field>callee_route_set</field><type>DB1_STR</type></column>
+		<column><field>callee_sock</field><type>DB1_STR</type></column>
+	</db_table>
+	<!-- Declaration of dialog_vars table-->
+	<db_table id="dialog_vars">
+		<table_name>dialog_vars</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>hash_entry</field><type>DB1_INT</type></column>
+		<column><field>hash_id</field><type>DB1_INT</type></column>
+		<column><field>dialog_key</field><type>DB1_STR</type></column>
+		<column><field>dialog_value</field><type>DB1_STR</type></column>
+	</db_table>
 	<!-- Declaration of nds_trusted_domains table-->
 	<db_table id="nds_trusted_domains">
 		<table_name>nds_trusted_domains</table_name>
@@ -2370,6 +2419,195 @@
 			</clause_cols>
 		</cmd>
 	</mod>
+	<!-- dialog_in provisioning -->
+	<mod><mod_name>dialog_in</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>dialog_in</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>callid</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>caller_original_cseq</field></col>
+				<col><field>req_uri</field></col>
+				<col><field>caller_route_set</field></col>
+				<col><field>caller_contact</field></col>
+				<col><field>caller_sock</field></col>
+				<col><field>timeout</field></col>
+				<col><field>state</field></col>
+				<col><field>start_time</field></col>
+				<col><field>sflags</field></col>
+				<col><field>toroute_name</field></col>
+				<col><field>toroute_index</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialog_in</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>callid</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>caller_original_cseq</field></col>
+				<col><field>req_uri</field></col>
+				<col><field>caller_route_set</field></col>
+				<col><field>caller_contact</field></col>
+				<col><field>caller_sock</field></col>
+				<col><field>timeout</field></col>
+				<col><field>state</field></col>
+				<col><field>start_time</field></col>
+				<col><field>sflags</field></col>
+				<col><field>toroute_name</field></col>
+				<col><field>toroute_index</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialog_in</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>callid</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>caller_original_cseq</field></col>
+				<col><field>req_uri</field></col>
+				<col><field>caller_route_set</field></col>
+				<col><field>caller_contact</field></col>
+				<col><field>caller_sock</field></col>
+				<col><field>timeout</field></col>
+				<col><field>state</field></col>
+				<col><field>start_time</field></col>
+				<col><field>sflags</field></col>
+				<col><field>toroute_name</field></col>
+				<col><field>toroute_index</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialog_in</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- dialog_out provisioning -->
+	<mod><mod_name>dialog_out</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>dialog_out</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>to_uri</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>caller_cseq</field></col>
+				<col><field>callee_cseq</field></col>
+				<col><field>callee_contact</field></col>
+				<col><field>callee_route_set</field></col>
+				<col><field>callee_sock</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialog_out</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>to_uri</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>caller_cseq</field></col>
+				<col><field>callee_cseq</field></col>
+				<col><field>callee_contact</field></col>
+				<col><field>callee_route_set</field></col>
+				<col><field>callee_sock</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialog_out</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>did</field></col>
+				<col><field>to_uri</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>caller_cseq</field></col>
+				<col><field>callee_cseq</field></col>
+				<col><field>callee_contact</field></col>
+				<col><field>callee_route_set</field></col>
+				<col><field>callee_sock</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialog_out</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- dialog_vars provisioning -->
+	<mod><mod_name>dialog_vars</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>dialog_key</field></col>
+				<col><field>dialog_value</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>dialog_key</field></col>
+				<col><field>dialog_value</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>dialog_key</field></col>
+				<col><field>dialog_value</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
 	<!-- nds_trusted_domains provisioning -->
 	<mod><mod_name>nds_trusted_domains</mod_name>
 		<cmd><cmd_name>show</cmd_name>