Ver Fonte

introducing new attribute "sw_max_uri_user" used by serweb

Karel Kozlik há 15 anos atrás
pai
commit
c17194092e

+ 14 - 0
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>

+ 7 - 0
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>

+ 1 - 0
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

+ 1 - 0
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

+ 3 - 0
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');

+ 3 - 0
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');

+ 3 - 0
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');