Skip to content

Commit

Permalink
kamctl: updated db definition scripts for uacreg table
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jan 18, 2016
1 parent c0166c0 commit 8fb9f17
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 9 deletions.
4 changes: 2 additions & 2 deletions utils/kamctl/db_berkeley/kamailio/uacreg
@@ -1,10 +1,10 @@
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
0
METADATA_LOGFLAGS
0
METADATA_DEFAULTS
NIL|''|''|''|''|''|''|''|''|''|0
NIL|''|''|''|''|''|''|''|''|''|0|0|0
2 changes: 1 addition & 1 deletion utils/kamctl/db_berkeley/kamailio/version
Expand Up @@ -117,7 +117,7 @@ subscriber|6
trusted|
trusted|6
uacreg|
uacreg|1
uacreg|2
uid_credentials|
uid_credentials|7
uid_domain|
Expand Down
4 changes: 3 additions & 1 deletion utils/kamctl/db_sqlite/uac-create.sql
Expand Up @@ -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');

2 changes: 1 addition & 1 deletion 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)
2 changes: 1 addition & 1 deletion utils/kamctl/dbtext/kamailio/version
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion utils/kamctl/mysql/uac-create.sql
Expand Up @@ -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');

4 changes: 3 additions & 1 deletion utils/kamctl/oracle/uac-create.sql
Expand Up @@ -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)
);

Expand All @@ -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');

4 changes: 3 additions & 1 deletion utils/kamctl/postgres/uac-create.sql
Expand Up @@ -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 changes: 8 additions & 0 deletions utils/kamctl/xhttp_pi/pi_framework.xml
Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down
6 changes: 6 additions & 0 deletions utils/kamctl/xhttp_pi/uac-mod
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions utils/kamctl/xhttp_pi/uac-table
Expand Up @@ -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>

0 comments on commit 8fb9f17

Please sign in to comment.