Browse Source

kamctl: updates to topos db scripts

Daniel-Constantin Mierla 9 years ago
parent
commit
6497b9a562

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

@@ -1,5 +1,5 @@
 METADATA_COLUMNS
-id(int) rectime(datetime) s_method(str) s_cseq(str) a_callid(str) a_uuid(str) b_uuid(str) a_contact(str) b_contact(str) as_contact(str) bs_contact(str) a_tag(str) b_tag(str) a_rr(str) b_rr(str) iflags(int) a_uri(str) b_uri(str) r_uri(str) a_srcip(str) b_srcip(str)
+id(int) rectime(datetime) s_method(str) s_cseq(str) a_callid(str) a_uuid(str) b_uuid(str) a_contact(str) b_contact(str) as_contact(str) bs_contact(str) a_tag(str) b_tag(str) a_rr(str) b_rr(str) s_rr(str) iflags(int) a_uri(str) b_uri(str) r_uri(str) a_srcip(str) b_srcip(str)
 METADATA_KEY
 4 5 6 
 METADATA_READONLY
@@ -7,4 +7,4 @@ METADATA_READONLY
 METADATA_LOGFLAGS
 0
 METADATA_DEFAULTS
-NIL|NIL|''|''|''|''|''|''|''|''|''|''|''|''|''|0|''|''|''|''|''
+NIL|NIL|''|''|''|''|''|''|''|''|''|''|''|''|''|''|0|''|''|''|''|''

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

@@ -1,5 +1,5 @@
 METADATA_COLUMNS
-id(int) rectime(datetime) s_method(str) s_cseq(str) a_callid(str) a_uuid(str) b_uuid(str) direction(int) x_via(str) x_vbranch(str) x_rr(str) x_uri(str) x_tag(str)
+id(int) rectime(datetime) s_method(str) s_cseq(str) a_callid(str) a_uuid(str) b_uuid(str) direction(int) x_via(str) x_vbranch(str) x_rr(str) y_rr(str) s_rr(str) x_uri(str) x_tag(str)
 METADATA_KEY
 4 5 6 7 9 
 METADATA_READONLY
@@ -7,4 +7,4 @@ METADATA_READONLY
 METADATA_LOGFLAGS
 0
 METADATA_DEFAULTS
-NIL|NIL|''|''|''|''|''|0|''|''|''|''|''
+NIL|NIL|''|''|''|''|''|0|''|''|''|''|''|''|''

+ 3 - 0
utils/kamctl/db_sqlite/topos-create.sql

@@ -14,6 +14,7 @@ CREATE TABLE topos_d (
     b_tag VARCHAR(64) DEFAULT '' NOT NULL,
     a_rr TEXT DEFAULT '' NOT NULL,
     b_rr TEXT DEFAULT '' NOT NULL,
+    s_rr TEXT DEFAULT '' NOT NULL,
     iflags INTEGER DEFAULT 0 NOT NULL,
     a_uri VARCHAR(128) DEFAULT '' NOT NULL,
     b_uri VARCHAR(128) DEFAULT '' NOT NULL,
@@ -39,6 +40,8 @@ CREATE TABLE topos_t (
     x_via TEXT DEFAULT '' NOT NULL,
     x_vbranch VARCHAR(255) DEFAULT '' NOT NULL,
     x_rr TEXT DEFAULT '' NOT NULL,
+    y_rr TEXT DEFAULT '' NOT NULL,
+    s_rr TEXT DEFAULT '' NOT NULL,
     x_uri VARCHAR(128) DEFAULT '' NOT NULL,
     x_tag VARCHAR(64) DEFAULT '' NOT NULL
 );

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

@@ -1 +1 @@
-id(int,auto) rectime(int) s_method(string) s_cseq(string) a_callid(string) a_uuid(string) b_uuid(string) a_contact(string) b_contact(string) as_contact(string) bs_contact(string) a_tag(string) b_tag(string) a_rr(string) b_rr(string) iflags(int) a_uri(string) b_uri(string) r_uri(string) a_srcip(string) b_srcip(string) 
+id(int,auto) rectime(int) s_method(string) s_cseq(string) a_callid(string) a_uuid(string) b_uuid(string) a_contact(string) b_contact(string) as_contact(string) bs_contact(string) a_tag(string) b_tag(string) a_rr(string) b_rr(string) s_rr(string) iflags(int) a_uri(string) b_uri(string) r_uri(string) a_srcip(string) b_srcip(string) 

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

@@ -1 +1 @@
-id(int,auto) rectime(int) s_method(string) s_cseq(string) a_callid(string) a_uuid(string) b_uuid(string) direction(int) x_via(string) x_vbranch(string) x_rr(string) x_uri(string) x_tag(string) 
+id(int,auto) rectime(int) s_method(string) s_cseq(string) a_callid(string) a_uuid(string) b_uuid(string) direction(int) x_via(string) x_vbranch(string) x_rr(string) y_rr(string) s_rr(string) x_uri(string) x_tag(string) 

+ 3 - 0
utils/kamctl/mysql/topos-create.sql

@@ -14,6 +14,7 @@ CREATE TABLE `topos_d` (
     `b_tag` VARCHAR(64) DEFAULT '' NOT NULL,
     `a_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
     `b_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
+    `s_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
     `iflags` INT(10) UNSIGNED DEFAULT 0 NOT NULL,
     `a_uri` VARCHAR(128) DEFAULT '' NOT NULL,
     `b_uri` VARCHAR(128) DEFAULT '' NOT NULL,
@@ -39,6 +40,8 @@ CREATE TABLE `topos_t` (
     `x_via` MEDIUMTEXT DEFAULT '' NOT NULL,
     `x_vbranch` VARCHAR(255) DEFAULT '' NOT NULL,
     `x_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
+    `y_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
+    `s_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
     `x_uri` VARCHAR(128) DEFAULT '' NOT NULL,
     `x_tag` VARCHAR(64) DEFAULT '' NOT NULL
 );

+ 3 - 0
utils/kamctl/oracle/topos-create.sql

@@ -14,6 +14,7 @@ CREATE TABLE topos_d (
     b_tag VARCHAR2(64) DEFAULT '',
     a_rr CLOB DEFAULT '',
     b_rr CLOB DEFAULT '',
+    s_rr CLOB DEFAULT '',
     iflags NUMBER(10) DEFAULT 0 NOT NULL,
     a_uri VARCHAR2(128) DEFAULT '',
     b_uri VARCHAR2(128) DEFAULT '',
@@ -47,6 +48,8 @@ CREATE TABLE topos_t (
     x_via CLOB DEFAULT '',
     x_vbranch VARCHAR2(255) DEFAULT '',
     x_rr CLOB DEFAULT '',
+    y_rr CLOB DEFAULT '',
+    s_rr CLOB DEFAULT '',
     x_uri VARCHAR2(128) DEFAULT '',
     x_tag VARCHAR2(64) DEFAULT ''
 );

+ 3 - 0
utils/kamctl/postgres/topos-create.sql

@@ -14,6 +14,7 @@ CREATE TABLE topos_d (
     b_tag VARCHAR(64) DEFAULT '' NOT NULL,
     a_rr TEXT DEFAULT '' NOT NULL,
     b_rr TEXT DEFAULT '' NOT NULL,
+    s_rr TEXT DEFAULT '' NOT NULL,
     iflags INTEGER DEFAULT 0 NOT NULL,
     a_uri VARCHAR(128) DEFAULT '' NOT NULL,
     b_uri VARCHAR(128) DEFAULT '' NOT NULL,
@@ -39,6 +40,8 @@ CREATE TABLE topos_t (
     x_via TEXT DEFAULT '' NOT NULL,
     x_vbranch VARCHAR(255) DEFAULT '' NOT NULL,
     x_rr TEXT DEFAULT '' NOT NULL,
+    y_rr TEXT DEFAULT '' NOT NULL,
+    s_rr TEXT DEFAULT '' NOT NULL,
     x_uri VARCHAR(128) DEFAULT '' NOT NULL,
     x_tag VARCHAR(64) DEFAULT '' NOT NULL
 );

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

@@ -679,6 +679,7 @@
 		<column><field>url</field><type>DB1_STR</type></column>
 		<column><field>weight</field><type>DB1_INT</type></column>
 		<column><field>disabled</field><type>DB1_INT</type></column>
+		<column><field>stamp</field><type>DB1_DATETIME</type></column>
 	</db_table>
 	<!-- Declaration of rtpproxy table-->
 	<db_table id="rtpproxy">
@@ -767,6 +768,7 @@
 		<column><field>b_tag</field><type>DB1_STR</type></column>
 		<column><field>a_rr</field><type>DB1_BLOB</type></column>
 		<column><field>b_rr</field><type>DB1_BLOB</type></column>
+		<column><field>s_rr</field><type>DB1_BLOB</type></column>
 		<column><field>iflags</field><type>DB1_INT</type></column>
 		<column><field>a_uri</field><type>DB1_STR</type></column>
 		<column><field>b_uri</field><type>DB1_STR</type></column>
@@ -789,6 +791,8 @@
 		<column><field>x_via</field><type>DB1_BLOB</type></column>
 		<column><field>x_vbranch</field><type>DB1_STR</type></column>
 		<column><field>x_rr</field><type>DB1_BLOB</type></column>
+		<column><field>y_rr</field><type>DB1_BLOB</type></column>
+		<column><field>s_rr</field><type>DB1_BLOB</type></column>
 		<column><field>x_uri</field><type>DB1_STR</type></column>
 		<column><field>x_tag</field><type>DB1_STR</type></column>
 	</db_table>
@@ -3604,6 +3608,7 @@
 				<col><field>url</field></col>
 				<col><field>weight</field></col>
 				<col><field>disabled</field></col>
+				<col><field>stamp</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>add</cmd_name>
@@ -3614,6 +3619,7 @@
 				<col><field>url</field></col>
 				<col><field>weight</field></col>
 				<col><field>disabled</field></col>
+				<col><field>stamp</field></col>
 			</query_cols>
 		</cmd>
 	</mod>
@@ -3896,6 +3902,7 @@
 				<col><field>b_tag</field></col>
 				<col><field>a_rr</field></col>
 				<col><field>b_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>iflags</field></col>
 				<col><field>a_uri</field></col>
 				<col><field>b_uri</field></col>
@@ -3922,6 +3929,7 @@
 				<col><field>b_tag</field></col>
 				<col><field>a_rr</field></col>
 				<col><field>b_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>iflags</field></col>
 				<col><field>a_uri</field></col>
 				<col><field>b_uri</field></col>
@@ -3951,6 +3959,7 @@
 				<col><field>b_tag</field></col>
 				<col><field>a_rr</field></col>
 				<col><field>b_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>iflags</field></col>
 				<col><field>a_uri</field></col>
 				<col><field>b_uri</field></col>
@@ -3984,6 +3993,8 @@
 				<col><field>x_via</field></col>
 				<col><field>x_vbranch</field></col>
 				<col><field>x_rr</field></col>
+				<col><field>y_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>x_uri</field></col>
 				<col><field>x_tag</field></col>
 			</query_cols>
@@ -4002,6 +4013,8 @@
 				<col><field>x_via</field></col>
 				<col><field>x_vbranch</field></col>
 				<col><field>x_rr</field></col>
+				<col><field>y_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>x_uri</field></col>
 				<col><field>x_tag</field></col>
 			</query_cols>
@@ -4023,6 +4036,8 @@
 				<col><field>x_via</field></col>
 				<col><field>x_vbranch</field></col>
 				<col><field>x_rr</field></col>
+				<col><field>y_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>x_uri</field></col>
 				<col><field>x_tag</field></col>
 			</query_cols>

+ 9 - 0
utils/kamctl/xhttp_pi/topos-mod

@@ -19,6 +19,7 @@
 				<col><field>b_tag</field></col>
 				<col><field>a_rr</field></col>
 				<col><field>b_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>iflags</field></col>
 				<col><field>a_uri</field></col>
 				<col><field>b_uri</field></col>
@@ -45,6 +46,7 @@
 				<col><field>b_tag</field></col>
 				<col><field>a_rr</field></col>
 				<col><field>b_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>iflags</field></col>
 				<col><field>a_uri</field></col>
 				<col><field>b_uri</field></col>
@@ -74,6 +76,7 @@
 				<col><field>b_tag</field></col>
 				<col><field>a_rr</field></col>
 				<col><field>b_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>iflags</field></col>
 				<col><field>a_uri</field></col>
 				<col><field>b_uri</field></col>
@@ -107,6 +110,8 @@
 				<col><field>x_via</field></col>
 				<col><field>x_vbranch</field></col>
 				<col><field>x_rr</field></col>
+				<col><field>y_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>x_uri</field></col>
 				<col><field>x_tag</field></col>
 			</query_cols>
@@ -125,6 +130,8 @@
 				<col><field>x_via</field></col>
 				<col><field>x_vbranch</field></col>
 				<col><field>x_rr</field></col>
+				<col><field>y_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>x_uri</field></col>
 				<col><field>x_tag</field></col>
 			</query_cols>
@@ -146,6 +153,8 @@
 				<col><field>x_via</field></col>
 				<col><field>x_vbranch</field></col>
 				<col><field>x_rr</field></col>
+				<col><field>y_rr</field></col>
+				<col><field>s_rr</field></col>
 				<col><field>x_uri</field></col>
 				<col><field>x_tag</field></col>
 			</query_cols>

+ 3 - 0
utils/kamctl/xhttp_pi/topos-table

@@ -17,6 +17,7 @@
 		<column><field>b_tag</field><type>DB1_STR</type></column>
 		<column><field>a_rr</field><type>DB1_BLOB</type></column>
 		<column><field>b_rr</field><type>DB1_BLOB</type></column>
+		<column><field>s_rr</field><type>DB1_BLOB</type></column>
 		<column><field>iflags</field><type>DB1_INT</type></column>
 		<column><field>a_uri</field><type>DB1_STR</type></column>
 		<column><field>b_uri</field><type>DB1_STR</type></column>
@@ -39,6 +40,8 @@
 		<column><field>x_via</field><type>DB1_BLOB</type></column>
 		<column><field>x_vbranch</field><type>DB1_STR</type></column>
 		<column><field>x_rr</field><type>DB1_BLOB</type></column>
+		<column><field>y_rr</field><type>DB1_BLOB</type></column>
+		<column><field>s_rr</field><type>DB1_BLOB</type></column>
 		<column><field>x_uri</field><type>DB1_STR</type></column>
 		<column><field>x_tag</field><type>DB1_STR</type></column>
 	</db_table>