Browse Source

dialog: new column to hold request uri

- table version set to 4
- regenerated db creation scripts
(cherry picked from commit 1f64908ea0e6ad14ad6d209ba0eeb7b11c6b1e18)
Daniel-Constantin Mierla 15 years ago
parent
commit
1c6bec5e67

+ 8 - 1
lib/srdb1/schema/dialog.xml

@@ -9,7 +9,7 @@
 
 
 <table id="dialog" xmlns:db="http://docbook.org/ns/docbook">
 <table id="dialog" xmlns:db="http://docbook.org/ns/docbook">
 	<name>dialog</name>
 	<name>dialog</name>
-	<version>3</version>
+	<version>4</version>
 	<type db="mysql">&MYSQL_TABLE_TYPE;</type>
 	<type db="mysql">&MYSQL_TABLE_TYPE;</type>
 	<description>
 	<description>
 		<db:para>Persistent dialog information for the dialog module. More 
 		<db:para>Persistent dialog information for the dialog module. More 
@@ -185,6 +185,13 @@
 		</description>
 		</description>
 	</column>
 	</column>
 
 
+	<column>
+		<name>req_uri</name>
+		<type>string</type>
+		<size>&uri_len;</size>
+		<description>The URI of initial request in dialog</description>
+	</column>
+
 	<index>
 	<index>
 		<name>hash_idx</name>
 		<name>hash_idx</name>
 		<colref linkend="hash_entry"/>
 		<colref linkend="hash_entry"/>

+ 2 - 2
utils/kamctl/db_berkeley/kamailio/dialog

@@ -1,5 +1,5 @@
 METADATA_COLUMNS
 METADATA_COLUMNS
-id(int) hash_entry(int) hash_id(int) callid(str) from_uri(str) from_tag(str) to_uri(str) to_tag(str) caller_cseq(str) callee_cseq(str) caller_route_set(str) callee_route_set(str) caller_contact(str) callee_contact(str) caller_sock(str) callee_sock(str) state(int) start_time(int) timeout(int) sflags(int) toroute(int)
+id(int) hash_entry(int) hash_id(int) callid(str) from_uri(str) from_tag(str) to_uri(str) to_tag(str) caller_cseq(str) callee_cseq(str) caller_route_set(str) callee_route_set(str) caller_contact(str) callee_contact(str) caller_sock(str) callee_sock(str) state(int) start_time(int) timeout(int) sflags(int) toroute(int) req_uri(str)
 METADATA_KEY
 METADATA_KEY
 1 2 
 1 2 
 METADATA_READONLY
 METADATA_READONLY
@@ -7,4 +7,4 @@ METADATA_READONLY
 METADATA_LOGFLAGS
 METADATA_LOGFLAGS
 0
 0
 METADATA_DEFAULTS
 METADATA_DEFAULTS
-NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|0|0|0
+NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|0|0|0|NIL

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

@@ -27,7 +27,7 @@ cpl|1
 dbaliases|
 dbaliases|
 dbaliases|1
 dbaliases|1
 dialog|
 dialog|
-dialog|3
+dialog|4
 dialplan|
 dialplan|
 dialplan|1
 dialplan|1
 dispatcher|
 dispatcher|

+ 1 - 1
utils/kamctl/dbtext/kamailio/dialog

@@ -1 +1 @@
-id(int,auto) hash_entry(int) hash_id(int) callid(string) from_uri(string) from_tag(string) to_uri(string) to_tag(string) caller_cseq(string) callee_cseq(string) caller_route_set(string,null) callee_route_set(string,null) caller_contact(string) callee_contact(string) caller_sock(string) callee_sock(string) state(int) start_time(int) timeout(int) sflags(int) toroute(int) 
+id(int,auto) hash_entry(int) hash_id(int) callid(string) from_uri(string) from_tag(string) to_uri(string) to_tag(string) caller_cseq(string) callee_cseq(string) caller_route_set(string,null) callee_route_set(string,null) caller_contact(string) callee_contact(string) caller_sock(string) callee_sock(string) state(int) start_time(int) timeout(int) sflags(int) toroute(int) req_uri(string) 

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

@@ -8,7 +8,7 @@ carrier_name:1
 carrierroute:3
 carrierroute:3
 cpl:1
 cpl:1
 dbaliases:1
 dbaliases:1
-dialog:3
+dialog:4
 dialplan:1
 dialplan:1
 dispatcher:3
 dispatcher:3
 domain:1
 domain:1

+ 3 - 2
utils/kamctl/mysql/dialog-create.sql

@@ -1,4 +1,4 @@
-INSERT INTO version (table_name, table_version) values ('dialog','3');
+INSERT INTO version (table_name, table_version) values ('dialog','4');
 CREATE TABLE dialog (
 CREATE TABLE dialog (
     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
     hash_entry INT(10) UNSIGNED NOT NULL,
     hash_entry INT(10) UNSIGNED NOT NULL,
@@ -20,7 +20,8 @@ CREATE TABLE dialog (
     start_time INT(10) UNSIGNED NOT NULL,
     start_time INT(10) UNSIGNED NOT NULL,
     timeout INT(10) UNSIGNED DEFAULT 0 NOT NULL,
     timeout INT(10) UNSIGNED DEFAULT 0 NOT NULL,
     sflags INT(10) UNSIGNED DEFAULT 0 NOT NULL,
     sflags INT(10) UNSIGNED DEFAULT 0 NOT NULL,
-    toroute INT(10) UNSIGNED DEFAULT 0 NOT NULL
+    toroute INT(10) UNSIGNED DEFAULT 0 NOT NULL,
+    req_uri VARCHAR(128) NOT NULL
 ) ENGINE=MyISAM;
 ) ENGINE=MyISAM;
 
 
 CREATE INDEX hash_idx ON dialog (hash_entry, hash_id);
 CREATE INDEX hash_idx ON dialog (hash_entry, hash_id);

+ 3 - 2
utils/kamctl/oracle/dialog-create.sql

@@ -1,4 +1,4 @@
-INSERT INTO version (table_name, table_version) values ('dialog','3');
+INSERT INTO version (table_name, table_version) values ('dialog','4');
 CREATE TABLE dialog (
 CREATE TABLE dialog (
     id NUMBER(10) PRIMARY KEY,
     id NUMBER(10) PRIMARY KEY,
     hash_entry NUMBER(10),
     hash_entry NUMBER(10),
@@ -20,7 +20,8 @@ CREATE TABLE dialog (
     start_time NUMBER(10),
     start_time NUMBER(10),
     timeout NUMBER(10) DEFAULT 0 NOT NULL,
     timeout NUMBER(10) DEFAULT 0 NOT NULL,
     sflags NUMBER(10) DEFAULT 0 NOT NULL,
     sflags NUMBER(10) DEFAULT 0 NOT NULL,
-    toroute NUMBER(10) DEFAULT 0 NOT NULL
+    toroute NUMBER(10) DEFAULT 0 NOT NULL,
+    req_uri VARCHAR2(128)
 );
 );
 
 
 CREATE OR REPLACE TRIGGER dialog_tr
 CREATE OR REPLACE TRIGGER dialog_tr

+ 3 - 2
utils/kamctl/postgres/dialog-create.sql

@@ -1,4 +1,4 @@
-INSERT INTO version (table_name, table_version) values ('dialog','3');
+INSERT INTO version (table_name, table_version) values ('dialog','4');
 CREATE TABLE dialog (
 CREATE TABLE dialog (
     id SERIAL PRIMARY KEY NOT NULL,
     id SERIAL PRIMARY KEY NOT NULL,
     hash_entry INTEGER NOT NULL,
     hash_entry INTEGER NOT NULL,
@@ -20,7 +20,8 @@ CREATE TABLE dialog (
     start_time INTEGER NOT NULL,
     start_time INTEGER NOT NULL,
     timeout INTEGER DEFAULT 0 NOT NULL,
     timeout INTEGER DEFAULT 0 NOT NULL,
     sflags INTEGER DEFAULT 0 NOT NULL,
     sflags INTEGER DEFAULT 0 NOT NULL,
-    toroute INTEGER DEFAULT 0 NOT NULL
+    toroute INTEGER DEFAULT 0 NOT NULL,
+    req_uri VARCHAR(128) NOT NULL
 );
 );
 
 
 CREATE INDEX dialog_hash_idx ON dialog (hash_entry, hash_id);
 CREATE INDEX dialog_hash_idx ON dialog (hash_entry, hash_id);