Browse code

kamctl: updated scripts for topos db

Daniel-Constantin Mierla authored on 18/03/2016 13:08:53
Showing 11 changed files
... ...
@@ -1,10 +1,10 @@
1 1
 METADATA_COLUMNS
2
-id(int) rectime(datetime) 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)
2
+id(int) rectime(datetime) s_method(str) s_cseq(int) 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)
3 3
 METADATA_KEY
4
-2 3 4 
4
+4 5 6 
5 5
 METADATA_READONLY
6 6
 0
7 7
 METADATA_LOGFLAGS
8 8
 0
9 9
 METADATA_DEFAULTS
10
-NIL|NIL|''|''|''|''|''|''|''|''|''|''|''|0|''|''|''|''|''
10
+NIL|NIL|''|0|''|''|''|''|''|''|''|''|''|''|''|0|''|''|''|''|''
... ...
@@ -1,10 +1,10 @@
1 1
 METADATA_COLUMNS
2
-id(int) rectime(datetime) 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)
2
+id(int) rectime(datetime) s_method(str) s_cseq(int) 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)
3 3
 METADATA_KEY
4
-2 3 4 5 7 
4
+4 5 6 7 9 
5 5
 METADATA_READONLY
6 6
 0
7 7
 METADATA_LOGFLAGS
8 8
 0
9 9
 METADATA_DEFAULTS
10
-NIL|NIL|''|''|''|0|''|''|''|''|''
10
+NIL|NIL|''|0|''|''|''|0|''|''|''|''|''
... ...
@@ -1,6 +1,8 @@
1 1
 CREATE TABLE topos_d (
2 2
     id INTEGER PRIMARY KEY NOT NULL,
3 3
     rectime TIMESTAMP WITHOUT TIME ZONE NOT NULL,
4
+    s_method VARCHAR(64) DEFAULT '' NOT NULL,
5
+    s_cseq INTEGER DEFAULT 0 NOT NULL,
4 6
     a_callid VARCHAR(255) DEFAULT '' NOT NULL,
5 7
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
6 8
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -28,6 +30,8 @@ INSERT INTO version (table_name, table_version) values ('topos_d','1');
28 30
 CREATE TABLE topos_t (
29 31
     id INTEGER PRIMARY KEY NOT NULL,
30 32
     rectime TIMESTAMP WITHOUT TIME ZONE NOT NULL,
33
+    s_method VARCHAR(64) DEFAULT '' NOT NULL,
34
+    s_cseq INTEGER DEFAULT 0 NOT NULL,
31 35
     a_callid VARCHAR(255) DEFAULT '' NOT NULL,
32 36
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
33 37
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -1 +1 @@
1
-id(int,auto) rectime(int) 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) 
1
+id(int,auto) rectime(int) s_method(string) s_cseq(int) 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) 
... ...
@@ -1 +1 @@
1
-id(int,auto) rectime(int) 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) 
1
+id(int,auto) rectime(int) s_method(string) s_cseq(int) 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) 
... ...
@@ -1,6 +1,8 @@
1 1
 CREATE TABLE `topos_d` (
2 2
     `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
3 3
     `rectime` DATETIME NOT NULL,
4
+    `s_method` VARCHAR(64) DEFAULT '' NOT NULL,
5
+    `s_cseq` INT UNSIGNED DEFAULT 0 NOT NULL,
4 6
     `a_callid` VARCHAR(255) DEFAULT '' NOT NULL,
5 7
     `a_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
6 8
     `b_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -28,6 +30,8 @@ INSERT INTO version (table_name, table_version) values ('topos_d','1');
28 30
 CREATE TABLE `topos_t` (
29 31
     `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
30 32
     `rectime` DATETIME NOT NULL,
33
+    `s_method` VARCHAR(64) DEFAULT '' NOT NULL,
34
+    `s_cseq` INT UNSIGNED DEFAULT 0 NOT NULL,
31 35
     `a_callid` VARCHAR(255) DEFAULT '' NOT NULL,
32 36
     `a_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
33 37
     `b_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -1,6 +1,8 @@
1 1
 CREATE TABLE topos_d (
2 2
     id NUMBER(10) PRIMARY KEY,
3 3
     rectime DATE,
4
+    s_method VARCHAR2(64) DEFAULT '',
5
+    s_cseq NUMBER(10) DEFAULT 0 NOT NULL,
4 6
     a_callid VARCHAR2(255) DEFAULT '',
5 7
     a_uuid VARCHAR2(255) DEFAULT '',
6 8
     b_uuid VARCHAR2(255) DEFAULT '',
... ...
@@ -36,6 +38,8 @@ INSERT INTO version (table_name, table_version) values ('topos_d','1');
36 38
 CREATE TABLE topos_t (
37 39
     id NUMBER(10) PRIMARY KEY,
38 40
     rectime DATE,
41
+    s_method VARCHAR2(64) DEFAULT '',
42
+    s_cseq NUMBER(10) DEFAULT 0 NOT NULL,
39 43
     a_callid VARCHAR2(255) DEFAULT '',
40 44
     a_uuid VARCHAR2(255) DEFAULT '',
41 45
     b_uuid VARCHAR2(255) DEFAULT '',
... ...
@@ -1,6 +1,8 @@
1 1
 CREATE TABLE topos_d (
2 2
     id SERIAL PRIMARY KEY NOT NULL,
3 3
     rectime TIMESTAMP WITHOUT TIME ZONE NOT NULL,
4
+    s_method VARCHAR(64) DEFAULT '' NOT NULL,
5
+    s_cseq INTEGER DEFAULT 0 NOT NULL,
4 6
     a_callid VARCHAR(255) DEFAULT '' NOT NULL,
5 7
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
6 8
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -28,6 +30,8 @@ INSERT INTO version (table_name, table_version) values ('topos_d','1');
28 30
 CREATE TABLE topos_t (
29 31
     id SERIAL PRIMARY KEY NOT NULL,
30 32
     rectime TIMESTAMP WITHOUT TIME ZONE NOT NULL,
33
+    s_method VARCHAR(64) DEFAULT '' NOT NULL,
34
+    s_cseq INTEGER DEFAULT 0 NOT NULL,
31 35
     a_callid VARCHAR(255) DEFAULT '' NOT NULL,
32 36
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
33 37
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -754,6 +754,8 @@
754 754
 		<db_url_id>mysql</db_url_id>
755 755
 		<column><field>id</field><type>DB1_INT</type></column>
756 756
 		<column><field>rectime</field><type>DB1_DATETIME</type></column>
757
+		<column><field>s_method</field><type>DB1_STR</type></column>
758
+		<column><field>s_cseq</field><type>DB1_INT</type></column>
757 759
 		<column><field>a_callid</field><type>DB1_STR</type></column>
758 760
 		<column><field>a_uuid</field><type>DB1_STR</type></column>
759 761
 		<column><field>b_uuid</field><type>DB1_STR</type></column>
... ...
@@ -778,6 +780,8 @@
778 780
 		<db_url_id>mysql</db_url_id>
779 781
 		<column><field>id</field><type>DB1_INT</type></column>
780 782
 		<column><field>rectime</field><type>DB1_DATETIME</type></column>
783
+		<column><field>s_method</field><type>DB1_STR</type></column>
784
+		<column><field>s_cseq</field><type>DB1_INT</type></column>
781 785
 		<column><field>a_callid</field><type>DB1_STR</type></column>
782 786
 		<column><field>a_uuid</field><type>DB1_STR</type></column>
783 787
 		<column><field>b_uuid</field><type>DB1_STR</type></column>
... ...
@@ -3879,6 +3883,8 @@
3879 3883
 			<query_cols>
3880 3884
 				<col><field>id</field><link_cmd>update</link_cmd></col>
3881 3885
 				<col><field>rectime</field></col>
3886
+				<col><field>s_method</field></col>
3887
+				<col><field>s_cseq</field></col>
3882 3888
 				<col><field>a_callid</field></col>
3883 3889
 				<col><field>a_uuid</field></col>
3884 3890
 				<col><field>b_uuid</field></col>
... ...
@@ -3903,6 +3909,8 @@
3903 3909
 			<cmd_type>DB1_INSERT</cmd_type>
3904 3910
 			<query_cols>
3905 3911
 				<col><field>rectime</field></col>
3912
+				<col><field>s_method</field></col>
3913
+				<col><field>s_cseq</field></col>
3906 3914
 				<col><field>a_callid</field></col>
3907 3915
 				<col><field>a_uuid</field></col>
3908 3916
 				<col><field>b_uuid</field></col>
... ...
@@ -3930,6 +3938,8 @@
3930 3938
 			</clause_cols>
3931 3939
 			<query_cols>
3932 3940
 				<col><field>rectime</field></col>
3941
+				<col><field>s_method</field></col>
3942
+				<col><field>s_cseq</field></col>
3933 3943
 				<col><field>a_callid</field></col>
3934 3944
 				<col><field>a_uuid</field></col>
3935 3945
 				<col><field>b_uuid</field></col>
... ...
@@ -3965,6 +3975,8 @@
3965 3975
 			<query_cols>
3966 3976
 				<col><field>id</field><link_cmd>update</link_cmd></col>
3967 3977
 				<col><field>rectime</field></col>
3978
+				<col><field>s_method</field></col>
3979
+				<col><field>s_cseq</field></col>
3968 3980
 				<col><field>a_callid</field></col>
3969 3981
 				<col><field>a_uuid</field></col>
3970 3982
 				<col><field>b_uuid</field></col>
... ...
@@ -3981,6 +3993,8 @@
3981 3993
 			<cmd_type>DB1_INSERT</cmd_type>
3982 3994
 			<query_cols>
3983 3995
 				<col><field>rectime</field></col>
3996
+				<col><field>s_method</field></col>
3997
+				<col><field>s_cseq</field></col>
3984 3998
 				<col><field>a_callid</field></col>
3985 3999
 				<col><field>a_uuid</field></col>
3986 4000
 				<col><field>b_uuid</field></col>
... ...
@@ -4000,6 +4014,8 @@
4000 4014
 			</clause_cols>
4001 4015
 			<query_cols>
4002 4016
 				<col><field>rectime</field></col>
4017
+				<col><field>s_method</field></col>
4018
+				<col><field>s_cseq</field></col>
4003 4019
 				<col><field>a_callid</field></col>
4004 4020
 				<col><field>a_uuid</field></col>
4005 4021
 				<col><field>b_uuid</field></col>
... ...
@@ -6,6 +6,8 @@
6 6
 			<query_cols>
7 7
 				<col><field>id</field><link_cmd>update</link_cmd></col>
8 8
 				<col><field>rectime</field></col>
9
+				<col><field>s_method</field></col>
10
+				<col><field>s_cseq</field></col>
9 11
 				<col><field>a_callid</field></col>
10 12
 				<col><field>a_uuid</field></col>
11 13
 				<col><field>b_uuid</field></col>
... ...
@@ -30,6 +32,8 @@
30 32
 			<cmd_type>DB1_INSERT</cmd_type>
31 33
 			<query_cols>
32 34
 				<col><field>rectime</field></col>
35
+				<col><field>s_method</field></col>
36
+				<col><field>s_cseq</field></col>
33 37
 				<col><field>a_callid</field></col>
34 38
 				<col><field>a_uuid</field></col>
35 39
 				<col><field>b_uuid</field></col>
... ...
@@ -57,6 +61,8 @@
57 61
 			</clause_cols>
58 62
 			<query_cols>
59 63
 				<col><field>rectime</field></col>
64
+				<col><field>s_method</field></col>
65
+				<col><field>s_cseq</field></col>
60 66
 				<col><field>a_callid</field></col>
61 67
 				<col><field>a_uuid</field></col>
62 68
 				<col><field>b_uuid</field></col>
... ...
@@ -92,6 +98,8 @@
92 98
 			<query_cols>
93 99
 				<col><field>id</field><link_cmd>update</link_cmd></col>
94 100
 				<col><field>rectime</field></col>
101
+				<col><field>s_method</field></col>
102
+				<col><field>s_cseq</field></col>
95 103
 				<col><field>a_callid</field></col>
96 104
 				<col><field>a_uuid</field></col>
97 105
 				<col><field>b_uuid</field></col>
... ...
@@ -108,6 +116,8 @@
108 116
 			<cmd_type>DB1_INSERT</cmd_type>
109 117
 			<query_cols>
110 118
 				<col><field>rectime</field></col>
119
+				<col><field>s_method</field></col>
120
+				<col><field>s_cseq</field></col>
111 121
 				<col><field>a_callid</field></col>
112 122
 				<col><field>a_uuid</field></col>
113 123
 				<col><field>b_uuid</field></col>
... ...
@@ -127,6 +137,8 @@
127 137
 			</clause_cols>
128 138
 			<query_cols>
129 139
 				<col><field>rectime</field></col>
140
+				<col><field>s_method</field></col>
141
+				<col><field>s_cseq</field></col>
130 142
 				<col><field>a_callid</field></col>
131 143
 				<col><field>a_uuid</field></col>
132 144
 				<col><field>b_uuid</field></col>
... ...
@@ -4,6 +4,8 @@
4 4
 		<db_url_id>mysql</db_url_id>
5 5
 		<column><field>id</field><type>DB1_INT</type></column>
6 6
 		<column><field>rectime</field><type>DB1_DATETIME</type></column>
7
+		<column><field>s_method</field><type>DB1_STR</type></column>
8
+		<column><field>s_cseq</field><type>DB1_INT</type></column>
7 9
 		<column><field>a_callid</field><type>DB1_STR</type></column>
8 10
 		<column><field>a_uuid</field><type>DB1_STR</type></column>
9 11
 		<column><field>b_uuid</field><type>DB1_STR</type></column>
... ...
@@ -28,6 +30,8 @@
28 30
 		<db_url_id>mysql</db_url_id>
29 31
 		<column><field>id</field><type>DB1_INT</type></column>
30 32
 		<column><field>rectime</field><type>DB1_DATETIME</type></column>
33
+		<column><field>s_method</field><type>DB1_STR</type></column>
34
+		<column><field>s_cseq</field><type>DB1_INT</type></column>
31 35
 		<column><field>a_callid</field><type>DB1_STR</type></column>
32 36
 		<column><field>a_uuid</field><type>DB1_STR</type></column>
33 37
 		<column><field>b_uuid</field><type>DB1_STR</type></column>