Просмотр исходного кода

kamctl: updated db definition scripts for uacreg table

Daniel-Constantin Mierla 9 лет назад
Родитель
Сommit
8fb9f17154

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

@@ -1,5 +1,5 @@
 METADATA_COLUMNS
-id(int) l_uuid(str) l_username(str) l_domain(str) r_username(str) r_domain(str) realm(str) auth_username(str) auth_password(str) auth_proxy(str) expires(int)
+id(int) l_uuid(str) l_username(str) l_domain(str) r_username(str) r_domain(str) realm(str) auth_username(str) auth_password(str) auth_proxy(str) expires(int) flags(int) reg_delay(int)
 METADATA_KEY
 
 METADATA_READONLY
@@ -7,4 +7,4 @@ METADATA_READONLY
 METADATA_LOGFLAGS
 0
 METADATA_DEFAULTS
-NIL|''|''|''|''|''|''|''|''|''|0
+NIL|''|''|''|''|''|''|''|''|''|0|0|0

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

@@ -117,7 +117,7 @@ subscriber|6
 trusted|
 trusted|6
 uacreg|
-uacreg|1
+uacreg|2
 uid_credentials|
 uid_credentials|7
 uid_domain|

+ 3 - 1
utils/kamctl/db_sqlite/uac-create.sql

@@ -10,8 +10,10 @@ CREATE TABLE uacreg (
     auth_password VARCHAR(64) DEFAULT '' NOT NULL,
     auth_proxy VARCHAR(64) DEFAULT '' NOT NULL,
     expires INTEGER DEFAULT 0 NOT NULL,
+    flags INTEGER DEFAULT 0 NOT NULL,
+    reg_delay INTEGER DEFAULT 0 NOT NULL,
     CONSTRAINT uacreg_l_uuid_idx UNIQUE (l_uuid)
 );
 
-INSERT INTO version (table_name, table_version) values ('uacreg','1');
+INSERT INTO version (table_name, table_version) values ('uacreg','2');
 

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

@@ -1 +1 @@
-id(int,auto) l_uuid(string) l_username(string) l_domain(string) r_username(string) r_domain(string) realm(string) auth_username(string) auth_password(string) auth_proxy(string) expires(int) 
+id(int,auto) l_uuid(string) l_username(string) l_domain(string) r_username(string) r_domain(string) realm(string) auth_username(string) auth_password(string) auth_proxy(string) expires(int) flags(int) reg_delay(int) 

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

@@ -53,7 +53,7 @@ sip_trace:4
 speed_dial:2
 subscriber:6
 trusted:6
-uacreg:1
+uacreg:2
 uid_credentials:7
 uid_domain:2
 uid_domain_attrs:1

+ 3 - 1
utils/kamctl/mysql/uac-create.sql

@@ -10,8 +10,10 @@ CREATE TABLE `uacreg` (
     `auth_password` VARCHAR(64) DEFAULT '' NOT NULL,
     `auth_proxy` VARCHAR(64) DEFAULT '' NOT NULL,
     `expires` INT DEFAULT 0 NOT NULL,
+    `flags` INT DEFAULT 0 NOT NULL,
+    `reg_delay` INT DEFAULT 0 NOT NULL,
     CONSTRAINT l_uuid_idx UNIQUE (`l_uuid`)
 );
 
-INSERT INTO version (table_name, table_version) values ('uacreg','1');
+INSERT INTO version (table_name, table_version) values ('uacreg','2');
 

+ 3 - 1
utils/kamctl/oracle/uac-create.sql

@@ -10,6 +10,8 @@ CREATE TABLE uacreg (
     auth_password VARCHAR2(64) DEFAULT '',
     auth_proxy VARCHAR2(64) DEFAULT '',
     expires NUMBER(10) DEFAULT 0 NOT NULL,
+    flags NUMBER(10) DEFAULT 0 NOT NULL,
+    reg_delay NUMBER(10) DEFAULT 0 NOT NULL,
     CONSTRAINT uacreg_l_uuid_idx  UNIQUE (l_uuid)
 );
 
@@ -21,5 +23,5 @@ END uacreg_tr;
 /
 BEGIN map2users('uacreg'); END;
 /
-INSERT INTO version (table_name, table_version) values ('uacreg','1');
+INSERT INTO version (table_name, table_version) values ('uacreg','2');
 

+ 3 - 1
utils/kamctl/postgres/uac-create.sql

@@ -10,8 +10,10 @@ CREATE TABLE uacreg (
     auth_password VARCHAR(64) DEFAULT '' NOT NULL,
     auth_proxy VARCHAR(64) DEFAULT '' NOT NULL,
     expires INTEGER DEFAULT 0 NOT NULL,
+    flags INTEGER DEFAULT 0 NOT NULL,
+    reg_delay INTEGER DEFAULT 0 NOT NULL,
     CONSTRAINT uacreg_l_uuid_idx UNIQUE (l_uuid)
 );
 
-INSERT INTO version (table_name, table_version) values ('uacreg','1');
+INSERT INTO version (table_name, table_version) values ('uacreg','2');
 

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

@@ -752,6 +752,8 @@
 		<column><field>auth_password</field><type>DB1_STR</type></column>
 		<column><field>auth_proxy</field><type>DB1_STR</type></column>
 		<column><field>expires</field><type>DB1_INT</type></column>
+		<column><field>flags</field><type>DB1_INT</type></column>
+		<column><field>reg_delay</field><type>DB1_INT</type></column>
 	</db_table>
 	<!-- Declaration of uid_credentials table-->
 	<db_table id="uid_credentials">
@@ -3806,6 +3808,8 @@
 				<col><field>auth_password</field></col>
 				<col><field>auth_proxy</field></col>
 				<col><field>expires</field></col>
+				<col><field>flags</field></col>
+				<col><field>reg_delay</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>add</cmd_name>
@@ -3822,6 +3826,8 @@
 				<col><field>auth_password</field></col>
 				<col><field>auth_proxy</field></col>
 				<col><field>expires</field></col>
+				<col><field>flags</field></col>
+				<col><field>reg_delay</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>update</cmd_name>
@@ -3841,6 +3847,8 @@
 				<col><field>auth_password</field></col>
 				<col><field>auth_proxy</field></col>
 				<col><field>expires</field></col>
+				<col><field>flags</field></col>
+				<col><field>reg_delay</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>delete</cmd_name>

+ 6 - 0
utils/kamctl/xhttp_pi/uac-mod

@@ -15,6 +15,8 @@
 				<col><field>auth_password</field></col>
 				<col><field>auth_proxy</field></col>
 				<col><field>expires</field></col>
+				<col><field>flags</field></col>
+				<col><field>reg_delay</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>add</cmd_name>
@@ -31,6 +33,8 @@
 				<col><field>auth_password</field></col>
 				<col><field>auth_proxy</field></col>
 				<col><field>expires</field></col>
+				<col><field>flags</field></col>
+				<col><field>reg_delay</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>update</cmd_name>
@@ -50,6 +54,8 @@
 				<col><field>auth_password</field></col>
 				<col><field>auth_proxy</field></col>
 				<col><field>expires</field></col>
+				<col><field>flags</field></col>
+				<col><field>reg_delay</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>delete</cmd_name>

+ 2 - 0
utils/kamctl/xhttp_pi/uac-table

@@ -13,4 +13,6 @@
 		<column><field>auth_password</field><type>DB1_STR</type></column>
 		<column><field>auth_proxy</field><type>DB1_STR</type></column>
 		<column><field>expires</field><type>DB1_INT</type></column>
+		<column><field>flags</field><type>DB1_INT</type></column>
+		<column><field>reg_delay</field><type>DB1_INT</type></column>
 	</db_table>