Browse Source

new attr_types introduced:
* fwd_busy_target
* fwd_noanswer_target
* fwd_always_target
* domain_data_version

Karel Kozlik 18 years ago
parent
commit
fcdd9f89f3

+ 44 - 0
db/schema/attr_types.xml

@@ -506,5 +506,49 @@
 	</row>
 
 								      
+	<row vendor-controlled="1">
+		<value col="at.name">fwd_busy_target</value>
+		<value col="at.type">2</value>
+		<value col="at.rich_t">sip_adr</value>
+		<value col="at.desc">@attr_fwd_busy_target</value>
+		<value col="at.d_flags">33</value>
+		<value col="at.flags">0</value>
+		<value col="at.prior">256</value>
+		<value col="at.order">50</value>
+	</row>
+								      
+	<row vendor-controlled="1">
+		<value col="at.name">fwd_noanswer_target</value>
+		<value col="at.type">2</value>
+		<value col="at.rich_t">sip_adr</value>
+		<value col="at.desc">@attr_fwd_noanswer_target</value>
+		<value col="at.d_flags">33</value>
+		<value col="at.flags">0</value>
+		<value col="at.prior">256</value>
+		<value col="at.order">55</value>
+	</row>
+								      
+	<row vendor-controlled="1">
+		<value col="at.name">fwd_always_target</value>
+		<value col="at.type">2</value>
+		<value col="at.rich_t">sip_adr</value>
+		<value col="at.desc">@attr_fwd_always_target</value>
+		<value col="at.d_flags">33</value>
+		<value col="at.flags">0</value>
+		<value col="at.prior">256</value>
+		<value col="at.order">60</value>
+	</row>
+
+								      
+	<row vendor-controlled="1">
+		<value col="at.name">domain_data_version</value>
+		<value col="at.type">0</value>
+		<value col="at.rich_t">int</value>
+		<value col="at.desc">Version of data in domain table</value>
+		<value col="at.d_flags">33</value>
+		<value col="at.flags">0</value>
+		<value col="at.prior">0</value>
+		<value col="at.order">0</value>
+	</row>
 
 </table>

+ 7 - 0
db/schema/global_attrs.xml

@@ -229,6 +229,13 @@
 		<value col="global_attrs.flags">32</value>
 	</row>
 		
+        <row vendor-controlled="1">
+                <value col="global_attrs.name">domain_data_version</value>
+                <value col="global_attrs.type">0</value>
+                <value col="global_attrs.value">0</value>
+                <value col="global_attrs.flags">33</value>
+        </row>
+									
 	<row>
 		<value col="global_attrs.name">sw_show_status</value>
 		<value col="global_attrs.type">0</value>

+ 4 - 0
scripts/dbtext/ser_db/attr_types

@@ -33,3 +33,7 @@ sw_send_missed:boolean:0::@ff_send_daily_missed_calls:32:0:1073807616:0:130:othe
 uid_format:list:2:a\:3\:{i\:0;s\:14\:"username@realm";i\:1;s\:21\:"integer (incremental)";i\:2;s\:15\:"UUID by RFC4122";}:@ff_uid_format:32:0:1073741824:0:160:other
 did_format:list:2:a\:3\:{i\:0;s\:11\:"domain name";i\:1;s\:21\:"integer (incremental)";i\:2;s\:15\:"UUID by RFC4122";}:@ff_did_format:32:0:1073741824:0:170:other
 contact_email:email_adr:2::@ff_contact_email:32:4096:1073807360:0:0:general
+fwd_busy_target:sip_adr:2::@attr_fwd_busy_target:33:0:256:0:50:other
+fwd_noanswer_target:sip_adr:2::@attr_fwd_noanswer_target:33:0:256:0:55:other
+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

+ 1 - 0
scripts/dbtext/ser_db/global_attrs

@@ -3,6 +3,7 @@ sw_domain_default_flags:0:33:32
 sw_credential_default_flags:0:33:32
 sw_uri_default_flags:0:57:32
 sw_uname_assign_mode:2:fcfs:32
+domain_data_version:0:0:33
 sw_show_status:0:1:32
 sw_require_conf:0:1:32
 lang:2:en:33

+ 10 - 0
scripts/mysql/my_data.sql

@@ -66,6 +66,14 @@ DELETE FROM attr_types WHERE name='did_format';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering, type_spec) VALUES ('did_format', '2', 'list', '@ff_did_format', '32', '0', '1073741824', '170', 'a:3:{i:0;s:11:"domain name";i:1;s:21:"integer (incremental)";i:2;s:15:"UUID by RFC4122";}');
 DELETE FROM attr_types WHERE name='contact_email';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering, grp) VALUES ('contact_email', '2', 'email_adr', '@ff_contact_email', '32', '4096', '1073807360', '0', 'general');
+DELETE FROM attr_types WHERE name='fwd_busy_target';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_busy_target', '2', 'sip_adr', '@attr_fwd_busy_target', '33', '0', '256', '50');
+DELETE FROM attr_types WHERE name='fwd_noanswer_target';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_noanswer_target', '2', 'sip_adr', '@attr_fwd_noanswer_target', '33', '0', '256', '55');
+DELETE FROM attr_types WHERE name='fwd_always_target';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_always_target', '2', 'sip_adr', '@attr_fwd_always_target', '33', '0', '256', '60');
+DELETE FROM attr_types WHERE name='domain_data_version';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('domain_data_version', '0', 'int', 'Version of data in domain table', '33', '0', '0', '0');
 
 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');
@@ -75,6 +83,8 @@ DELETE FROM global_attrs WHERE name='sw_uri_default_flags';
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
 DELETE FROM global_attrs WHERE name='sw_uname_assign_mode';
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_uname_assign_mode', '2', 'fcfs', '32');
+DELETE FROM global_attrs WHERE name='domain_data_version';
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('domain_data_version', '0', '0', '33');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');

+ 10 - 0
scripts/oracle/or_data.sql

@@ -66,6 +66,14 @@ DELETE FROM attr_types WHERE name='did_format';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering, type_spec) VALUES ('did_format', '2', 'list', '@ff_did_format', '32', '0', '1073741824', '170', 'a:3:{i:0;s:11:"domain name";i:1;s:21:"integer (incremental)";i:2;s:15:"UUID by RFC4122";}');
 DELETE FROM attr_types WHERE name='contact_email';
 INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering, grp) VALUES ('contact_email', '2', 'email_adr', '@ff_contact_email', '32', '4096', '1073807360', '0', 'general');
+DELETE FROM attr_types WHERE name='fwd_busy_target';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_busy_target', '2', 'sip_adr', '@attr_fwd_busy_target', '33', '0', '256', '50');
+DELETE FROM attr_types WHERE name='fwd_noanswer_target';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_noanswer_target', '2', 'sip_adr', '@attr_fwd_noanswer_target', '33', '0', '256', '55');
+DELETE FROM attr_types WHERE name='fwd_always_target';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_always_target', '2', 'sip_adr', '@attr_fwd_always_target', '33', '0', '256', '60');
+DELETE FROM attr_types WHERE name='domain_data_version';
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('domain_data_version', '0', 'int', 'Version of data in domain table', '33', '0', '0', '0');
 
 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');
@@ -75,6 +83,8 @@ DELETE FROM global_attrs WHERE name='sw_uri_default_flags';
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
 DELETE FROM global_attrs WHERE name='sw_uname_assign_mode';
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_uname_assign_mode', '2', 'fcfs', '32');
+DELETE FROM global_attrs WHERE name='domain_data_version';
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('domain_data_version', '0', '0', '33');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
 INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');

+ 10 - 0
scripts/postgres/pg_data.sql

@@ -66,6 +66,14 @@ DELETE FROM attr_types WHERE name='did_format';
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering, type_spec) VALUES ('did_format', '2', 'list', '@ff_did_format', '32', '0', '1073741824', '170', 'a:3:{i:0;s:11:"domain name";i:1;s:21:"integer (incremental)";i:2;s:15:"UUID by RFC4122";}');
 DELETE FROM attr_types WHERE name='contact_email';
 INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering, grp) VALUES ('contact_email', '2', 'email_adr', '@ff_contact_email', '32', '4096', '1073807360', '0', 'general');
+DELETE FROM attr_types WHERE name='fwd_busy_target';
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_busy_target', '2', 'sip_adr', '@attr_fwd_busy_target', '33', '0', '256', '50');
+DELETE FROM attr_types WHERE name='fwd_noanswer_target';
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_noanswer_target', '2', 'sip_adr', '@attr_fwd_noanswer_target', '33', '0', '256', '55');
+DELETE FROM attr_types WHERE name='fwd_always_target';
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('fwd_always_target', '2', 'sip_adr', '@attr_fwd_always_target', '33', '0', '256', '60');
+DELETE FROM attr_types WHERE name='domain_data_version';
+INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('domain_data_version', '0', 'int', 'Version of data in domain table', '33', '0', '0', '0');
 
 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');
@@ -75,6 +83,8 @@ DELETE FROM global_attrs WHERE name='sw_uri_default_flags';
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
 DELETE FROM global_attrs WHERE name='sw_uname_assign_mode';
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_uname_assign_mode', '2', 'fcfs', '32');
+DELETE FROM global_attrs WHERE name='domain_data_version';
+INSERT INTO global_attrs (name, type, value, flags) VALUES ('domain_data_version', '0', '0', '33');
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
 INSERT INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');