[sr-dev] git:master: introducing new attribute "sw_max_uri_user" used by serweb

Karel Kozlik karel at iptel.org
Tue Jan 19 10:08:45 CET 2010


Module: sip-router
Branch: master
Commit: c17194092eb57a12403f1ac50c7a953110cbae71
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c17194092eb57a12403f1ac50c7a953110cbae71

Author: Karel Kozlik <karel at iptel.org>
Committer: Karel Kozlik <karel at iptel.org>
Date:   Tue Jan 19 10:05:30 2010 +0100

introducing new attribute "sw_max_uri_user" used by serweb

---

 lib/srdb2/schema/attr_types.xml    |   14 ++++++++++++++
 lib/srdb2/schema/global_attrs.xml  |    7 +++++++
 scripts/dbtext/ser_db/attr_types   |    1 +
 scripts/dbtext/ser_db/global_attrs |    1 +
 scripts/mysql/my_data.sql          |    3 +++
 scripts/oracle/or_data.sql         |    3 +++
 scripts/postgres/pg_data.sql       |    3 +++
 7 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/lib/srdb2/schema/attr_types.xml b/lib/srdb2/schema/attr_types.xml
index 4ddf60e..e63e954 100644
--- a/lib/srdb2/schema/attr_types.xml
+++ b/lib/srdb2/schema/attr_types.xml
@@ -577,4 +577,18 @@
 	<value col="at.order">0</value>
   </row>
 
+  <row vendor-controlled="1">
+	<value col="at.name">sw_max_uri_user</value>
+	<value col="at.type">0</value>
+	<value col="at.rich_t">int</value>
+	<value col="at.type_spec">a:3:{s:3:\"min\";s:1:\"0\";s:3:\"max\";s:3:\"999\";s:3:\"err\";N;}</value>
+	<value col="at.desc">@ff_max_uri_user</value>
+	<value col="at.d_flags">32</value>
+	<value col="at.flags">4096</value>
+	<value col="at.prior">1073807360</value>
+	<value col="at.access">3</value>
+	<value col="at.order">0</value>
+	<value col="at.grp">other</value>
+  </row>
+
 </table>
diff --git a/lib/srdb2/schema/global_attrs.xml b/lib/srdb2/schema/global_attrs.xml
index 1d1beb3..41c3794 100644
--- a/lib/srdb2/schema/global_attrs.xml
+++ b/lib/srdb2/schema/global_attrs.xml
@@ -274,4 +274,11 @@
 	<value col="global_attrs.flags">32</value>
   </row>
   
+  <row>
+	<value col="global_attrs.name">sw_max_uri_user</value>
+	<value col="global_attrs.type">0</value>
+	<value col="global_attrs.value">5</value>
+	<value col="global_attrs.flags">32</value>
+  </row>
+  
 </table>
diff --git a/scripts/dbtext/ser_db/attr_types b/scripts/dbtext/ser_db/attr_types
index 9214fb8..13d53da 100644
--- a/scripts/dbtext/ser_db/attr_types
+++ b/scripts/dbtext/ser_db/attr_types
@@ -39,3 +39,4 @@ fwd_always_target:sip_adr:2::@attr_fwd_always_target:33:0:256:0:60:other
 domain_data_version:int:0::Version of data in domain table:33:0:0:0:0:other
 sw_highest_alias_number:int:0::highest assigned alias number:32:0:0:0:0:other
 gattr_timestamp:int:0::Version of global attrs data:33:0:0:0:0:other
+sw_max_uri_user:int:0:a\:3\:{s\:3\:\"min\";s\:1\:\"0\";s\:3\:\"max\";s\:3\:\"999\";s\:3\:\"err\";N;}:@ff_max_uri_user:32:4096:1073807360:3:0:other
diff --git a/scripts/dbtext/ser_db/global_attrs b/scripts/dbtext/ser_db/global_attrs
index 91a514e..2a7510a 100644
--- a/scripts/dbtext/ser_db/global_attrs
+++ b/scripts/dbtext/ser_db/global_attrs
@@ -11,3 +11,4 @@ lang:2:en:33
 sw_timezone:2:Europe/Prague:32
 uid_format:2:0:32
 did_format:2:0:32
+sw_max_uri_user:0:5:32
diff --git a/scripts/mysql/my_data.sql b/scripts/mysql/my_data.sql
index 52a8786..3c26226 100644
--- a/scripts/mysql/my_data.sql
+++ b/scripts/mysql/my_data.sql
@@ -78,6 +78,8 @@ DELETE FROM attr_types WHERE name='sw_highest_alias_number';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_highest_alias_number', '0', 'int', 'highest assigned alias number', '32', '0', '0', '0');
 DELETE FROM attr_types WHERE name='gattr_timestamp';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('gattr_timestamp', '0', 'int', 'Version of global attrs data', '33', '0', '0', '0');
+DELETE FROM attr_types WHERE name='sw_max_uri_user';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, type_spec, description, default_flags, flags, priority, access, ordering, grp) VALUES ('sw_max_uri_user', '0', 'int', 'a:3:{s:3:\"min\";s:1:\"0\";s:3:\"max\";s:3:\"999\";s:3:\"err\";N;}', '@ff_max_uri_user', '32', '4096', '1073807360', '3', '0', 'other');
 
 DELETE FROM global_attrs WHERE name='sw_domain_default_flags';
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
@@ -97,6 +99,7 @@ INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('lang', '2',
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('uid_format', '2', '0', '32');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('did_format', '2', '0', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_max_uri_user', '0', '5', '32');
 
 INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('100', 'en_US.ascii', 'Trying');
 INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('180', 'en_US.ascii', 'Ringing');
diff --git a/scripts/oracle/or_data.sql b/scripts/oracle/or_data.sql
index fc1f7e2..d163b1c 100644
--- a/scripts/oracle/or_data.sql
+++ b/scripts/oracle/or_data.sql
@@ -78,6 +78,8 @@ DELETE FROM attr_types WHERE name='sw_highest_alias_number';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_highest_alias_number', '0', 'int', 'highest assigned alias number', '32', '0', '0', '0');
 DELETE FROM attr_types WHERE name='gattr_timestamp';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('gattr_timestamp', '0', 'int', 'Version of global attrs data', '33', '0', '0', '0');
+DELETE FROM attr_types WHERE name='sw_max_uri_user';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, type_spec, description, default_flags, flags, priority, attr_access, ordering, grp) VALUES ('sw_max_uri_user', '0', 'int', 'a:3:{s:3:\"min\";s:1:\"0\";s:3:\"max\";s:3:\"999\";s:3:\"err\";N;}', '@ff_max_uri_user', '32', '4096', '1073807360', '3', '0', 'other');
 
 DELETE FROM global_attrs WHERE name='sw_domain_default_flags';
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
@@ -97,6 +99,7 @@ INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('lang', '2',
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('uid_format', '2', '0', '32');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('did_format', '2', '0', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_max_uri_user', '0', '5', '32');
 
 INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('100', 'en_US.ascii', 'Trying');
 INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('180', 'en_US.ascii', 'Ringing');
diff --git a/scripts/postgres/pg_data.sql b/scripts/postgres/pg_data.sql
index aa3b480..67719ff 100644
--- a/scripts/postgres/pg_data.sql
+++ b/scripts/postgres/pg_data.sql
@@ -78,6 +78,8 @@ DELETE FROM attr_types WHERE name='sw_highest_alias_number';
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_highest_alias_number', '0', 'int', 'highest assigned alias number', '32', '0', '0', '0');
 DELETE FROM attr_types WHERE name='gattr_timestamp';
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('gattr_timestamp', '0', 'int', 'Version of global attrs data', '33', '0', '0', '0');
+DELETE FROM attr_types WHERE name='sw_max_uri_user';
+INSERT INTO attr_types (name, raw_type, rich_type, type_spec, description, default_flags, flags, priority, access, ordering, grp) VALUES ('sw_max_uri_user', '0', 'int', 'a:3:{s:3:\"min\";s:1:\"0\";s:3:\"max\";s:3:\"999\";s:3:\"err\";N;}', '@ff_max_uri_user', '32', '4096', '1073807360', '3', '0', 'other');
 
 DELETE FROM global_attrs WHERE name='sw_domain_default_flags';
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
@@ -97,6 +99,7 @@ INSERT INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('uid_format', '2', '0', '32');
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('did_format', '2', '0', '32');
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_max_uri_user', '0', '5', '32');
 
 INSERT INTO i18n (code, lang, new_reason) VALUES ('100', 'en_US.ascii', 'Trying');
 INSERT INTO i18n (code, lang, new_reason) VALUES ('180', 'en_US.ascii', 'Ringing');




More information about the sr-dev mailing list