Browse Source

kamctl: refreshed the db creation scripts for topos

Daniel-Constantin Mierla 8 năm trước cách đây
mục cha
commit
3cfc8d9c54

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

@@ -7,4 +7,4 @@ METADATA_READONLY
 METADATA_LOGFLAGS
 0
 METADATA_DEFAULTS
-NIL|NIL|''|''|''|''|''|''|''|''|''|''|''|''|''|''|0|''|''|''|''|''|''|''
+NIL|NIL|''|''|''|''|''|''|''|''|''|''|''|NIL|NIL|NIL|0|''|''|''|''|''|''|''

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

@@ -7,4 +7,4 @@ METADATA_READONLY
 METADATA_LOGFLAGS
 0
 METADATA_DEFAULTS
-NIL|NIL|''|''|''|''|''|0|''|''|''|''|''|''|''|''|''|''|''|''|''|''|''|''|''
+NIL|NIL|''|''|''|''|''|0|NIL|''|NIL|NIL|NIL|''|''|''|''|''|''|''|''|''|''|''|''

+ 7 - 7
utils/kamctl/db_sqlite/topos-create.sql

@@ -12,9 +12,9 @@ CREATE TABLE topos_d (
     bs_contact VARCHAR(128) DEFAULT '' NOT NULL,
     a_tag VARCHAR(255) DEFAULT '' NOT NULL,
     b_tag VARCHAR(255) DEFAULT '' NOT NULL,
-    a_rr TEXT DEFAULT '' NOT NULL,
-    b_rr TEXT DEFAULT '' NOT NULL,
-    s_rr TEXT DEFAULT '' NOT NULL,
+    a_rr TEXT,
+    b_rr TEXT,
+    s_rr TEXT,
     iflags INTEGER DEFAULT 0 NOT NULL,
     a_uri VARCHAR(128) DEFAULT '' NOT NULL,
     b_uri VARCHAR(128) DEFAULT '' NOT NULL,
@@ -39,11 +39,11 @@ CREATE TABLE topos_t (
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
     direction INTEGER DEFAULT 0 NOT NULL,
-    x_via TEXT DEFAULT '' NOT NULL,
+    x_via TEXT,
     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_rr TEXT,
+    y_rr TEXT,
+    s_rr TEXT,
     x_uri VARCHAR(128) DEFAULT '' NOT NULL,
     a_contact VARCHAR(128) DEFAULT '' NOT NULL,
     b_contact VARCHAR(128) 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) s_rr(string) iflags(int) a_uri(string) b_uri(string) r_uri(string) a_srcaddr(string) b_srcaddr(string) a_socket(string) b_socket(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,null) b_rr(string,null) s_rr(string,null) iflags(int) a_uri(string) b_uri(string) r_uri(string) a_srcaddr(string) b_srcaddr(string) a_socket(string) b_socket(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) y_rr(string) s_rr(string) x_uri(string) a_contact(string) b_contact(string) as_contact(string) bs_contact(string) x_tag(string) a_tag(string) b_tag(string) a_srcaddr(string) b_srcaddr(string) a_socket(string) b_socket(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,null) x_vbranch(string) x_rr(string,null) y_rr(string,null) s_rr(string,null) x_uri(string) a_contact(string) b_contact(string) as_contact(string) bs_contact(string) x_tag(string) a_tag(string) b_tag(string) a_srcaddr(string) b_srcaddr(string) a_socket(string) b_socket(string) 

+ 7 - 7
utils/kamctl/mysql/topos-create.sql

@@ -12,9 +12,9 @@ CREATE TABLE `topos_d` (
     `bs_contact` VARCHAR(128) DEFAULT '' NOT NULL,
     `a_tag` VARCHAR(255) DEFAULT '' NOT NULL,
     `b_tag` VARCHAR(255) DEFAULT '' NOT NULL,
-    `a_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
-    `b_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
-    `s_rr` MEDIUMTEXT DEFAULT '' NOT NULL,
+    `a_rr` MEDIUMTEXT,
+    `b_rr` MEDIUMTEXT,
+    `s_rr` MEDIUMTEXT,
     `iflags` INT(10) UNSIGNED DEFAULT 0 NOT NULL,
     `a_uri` VARCHAR(128) DEFAULT '' NOT NULL,
     `b_uri` VARCHAR(128) DEFAULT '' NOT NULL,
@@ -39,11 +39,11 @@ CREATE TABLE `topos_t` (
     `a_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
     `b_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
     `direction` INT DEFAULT 0 NOT NULL,
-    `x_via` MEDIUMTEXT DEFAULT '' NOT NULL,
+    `x_via` MEDIUMTEXT,
     `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_rr` MEDIUMTEXT,
+    `y_rr` MEDIUMTEXT,
+    `s_rr` MEDIUMTEXT,
     `x_uri` VARCHAR(128) DEFAULT '' NOT NULL,
     `a_contact` VARCHAR(128) DEFAULT '' NOT NULL,
     `b_contact` VARCHAR(128) DEFAULT '' NOT NULL,

+ 7 - 7
utils/kamctl/oracle/topos-create.sql

@@ -12,9 +12,9 @@ CREATE TABLE topos_d (
     bs_contact VARCHAR2(128) DEFAULT '',
     a_tag VARCHAR2(255) DEFAULT '',
     b_tag VARCHAR2(255) DEFAULT '',
-    a_rr CLOB DEFAULT '',
-    b_rr CLOB DEFAULT '',
-    s_rr CLOB DEFAULT '',
+    a_rr CLOB,
+    b_rr CLOB,
+    s_rr CLOB,
     iflags NUMBER(10) DEFAULT 0 NOT NULL,
     a_uri VARCHAR2(128) DEFAULT '',
     b_uri VARCHAR2(128) DEFAULT '',
@@ -47,11 +47,11 @@ CREATE TABLE topos_t (
     a_uuid VARCHAR2(255) DEFAULT '',
     b_uuid VARCHAR2(255) DEFAULT '',
     direction NUMBER(10) DEFAULT 0 NOT NULL,
-    x_via CLOB DEFAULT '',
+    x_via CLOB,
     x_vbranch VARCHAR2(255) DEFAULT '',
-    x_rr CLOB DEFAULT '',
-    y_rr CLOB DEFAULT '',
-    s_rr CLOB DEFAULT '',
+    x_rr CLOB,
+    y_rr CLOB,
+    s_rr CLOB,
     x_uri VARCHAR2(128) DEFAULT '',
     a_contact VARCHAR2(128) DEFAULT '',
     b_contact VARCHAR2(128) DEFAULT '',

+ 7 - 7
utils/kamctl/postgres/topos-create.sql

@@ -12,9 +12,9 @@ CREATE TABLE topos_d (
     bs_contact VARCHAR(128) DEFAULT '' NOT NULL,
     a_tag VARCHAR(255) DEFAULT '' NOT NULL,
     b_tag VARCHAR(255) DEFAULT '' NOT NULL,
-    a_rr TEXT DEFAULT '' NOT NULL,
-    b_rr TEXT DEFAULT '' NOT NULL,
-    s_rr TEXT DEFAULT '' NOT NULL,
+    a_rr TEXT,
+    b_rr TEXT,
+    s_rr TEXT,
     iflags INTEGER DEFAULT 0 NOT NULL,
     a_uri VARCHAR(128) DEFAULT '' NOT NULL,
     b_uri VARCHAR(128) DEFAULT '' NOT NULL,
@@ -39,11 +39,11 @@ CREATE TABLE topos_t (
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
     direction INTEGER DEFAULT 0 NOT NULL,
-    x_via TEXT DEFAULT '' NOT NULL,
+    x_via TEXT,
     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_rr TEXT,
+    y_rr TEXT,
+    s_rr TEXT,
     x_uri VARCHAR(128) DEFAULT '' NOT NULL,
     a_contact VARCHAR(128) DEFAULT '' NOT NULL,
     b_contact VARCHAR(128) DEFAULT '' NOT NULL,