From 23c9f8cd9b72d15c382c0090825f154c8b3caa1b Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 10 Dec 2012 14:57:09 +0000 Subject: [PATCH] more fixing of timestamps --- db_scripts/diff/10203.up | 4 ++-- db_scripts/diff/10287.up | 10 +++++----- db_scripts/diff/7260.up | 12 ++++++++---- db_scripts/diff/7500.up | 2 +- db_scripts/diff/8408.up | 7 ++++--- db_scripts/diff/9228.up | 2 +- 6 files changed, 21 insertions(+), 16 deletions(-) diff --git a/db_scripts/diff/10203.up b/db_scripts/diff/10203.up index 69a8d535..d1a16d46 100644 --- a/db_scripts/diff/10203.up +++ b/db_scripts/diff/10203.up @@ -1,11 +1,11 @@ use provisioning UPDATE voip_preferences - SET description = 'E.164 number or complete SIP URI. "network-provided calling line identification" - specifies the source E.164 number or SIP username. Automatically set to the primary E.164 number specified in the subscriber details.' + SET description = 'E.164 number or complete SIP URI. "network-provided calling line identification" - specifies the source E.164 number or SIP username. Automatically set to the primary E.164 number specified in the subscriber details.', modify_timestamp = '1970-01-01 00:00:00' WHERE attribute = 'cli'; UPDATE voip_preferences - SET description = 'E.164 number or complete SIP URI. "user-provided calling line identification" - specifies the source E.164 number or SIP username. This is the default UPN (user-provided calling number) in case client-provided UPN as determined by "inbound_upn" preference is not allowed according to "allowed_clis" check.' + SET description = 'E.164 number or complete SIP URI. "user-provided calling line identification" - specifies the source E.164 number or SIP username. This is the default UPN (user-provided calling number) in case client-provided UPN as determined by "inbound_upn" preference is not allowed according to "allowed_clis" check.', modify_timestamp = '1970-01-01 00:00:00' WHERE attribute = 'user_cli'; DELETE FROM voip_preferences WHERE attribute='omit_outbound_displayname'; diff --git a/db_scripts/diff/10287.up b/db_scripts/diff/10287.up index 06d63194..f32074c8 100644 --- a/db_scripts/diff/10287.up +++ b/db_scripts/diff/10287.up @@ -15,19 +15,19 @@ INSERT INTO language_strings VALUES (NULL, 'Client.Syntax.InvalidSipUsername', ' INSERT INTO language_strings VALUES (NULL, 'Client.Syntax.InvalidSipUsername', 'es', 'Invalid sip username'); INSERT INTO language_strings VALUES (NULL, 'Client.Syntax.InvalidSipUsername', 'fr', 'Invalid sip username'); -UPDATE voip_preferences SET description='SIP username (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com"). "network-provided calling line identification" - specifies the SIP username that is used for outgoing calls in the SIP "From" and "P-Asserted-Identity" headers (as user- and network-provided calling numbers). The content of the "From" header may be overridden by the "user_cli" preference and client (if allowed by the "allowed_clis" preference) SIP signalling. Automatically set to the primary E.164 number specified in the subscriber details.' +UPDATE voip_preferences SET description='SIP username (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com"). "network-provided calling line identification" - specifies the SIP username that is used for outgoing calls in the SIP "From" and "P-Asserted-Identity" headers (as user- and network-provided calling numbers). The content of the "From" header may be overridden by the "user_cli" preference and client (if allowed by the "allowed_clis" preference) SIP signalling. Automatically set to the primary E.164 number specified in the subscriber details.', modify_timestamp = '1970-01-01 00:00:00' WHERE attribute='cli'; -UPDATE voip_preferences SET description='SIP username (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com"). "user-provided calling line identification" - specifies the SIP username that is used for outgoing calls. If set, this is put in the SIP "From" header (as user-provided calling number) if a client sends a CLI which is not allowed by "allowed_clis" or if "allowed_clis" is not set.' +UPDATE voip_preferences SET description='SIP username (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com"). "user-provided calling line identification" - specifies the SIP username that is used for outgoing calls. If set, this is put in the SIP "From" header (as user-provided calling number) if a client sends a CLI which is not allowed by "allowed_clis" or if "allowed_clis" is not set.', modify_timestamp = '1970-01-01 00:00:00' WHERE attribute='user_cli'; -UPDATE voip_preferences SET description='SIP username (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com"). Emergency CLI which can be used in rewrite rules as substitution value.' +UPDATE voip_preferences SET description='SIP username (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com"). Emergency CLI which can be used in rewrite rules as substitution value.', modify_timestamp = '1970-01-01 00:00:00' WHERE attribute='emergency_cli'; -UPDATE voip_preferences SET description='Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com") that are (not) allowed to be called by the subscriber. "*", "?" and "[x-y]" with "x" and "y" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.' +UPDATE voip_preferences SET description='Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com") that are (not) allowed to be called by the subscriber. "*", "?" and "[x-y]" with "x" and "y" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.', modify_timestamp = '1970-01-01 00:00:00' WHERE attribute='block_out_list'; -UPDATE voip_preferences SET description='Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com") that are (not) allowed to call the subscriber. "*", "?" and "[x-y]" with "x" and "y" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.' +UPDATE voip_preferences SET description='Contains wildcarded SIP usernames (the localpart of the whole SIP URI, eg., "user" of SIP URI "user@example.com") that are (not) allowed to call the subscriber. "*", "?" and "[x-y]" with "x" and "y" representing numbers from 0 to 9 may be used as wildcards like in shell patterns.', modify_timestamp = '1970-01-01 00:00:00' WHERE attribute='block_in_list'; -- update cli-preference. Used to be sipuris (eg. sip:+user01@example.com), now it's just sipusernames (aka localpart) diff --git a/db_scripts/diff/7260.up b/db_scripts/diff/7260.up index 1728c221..7c71bd74 100644 --- a/db_scripts/diff/7260.up +++ b/db_scripts/diff/7260.up @@ -36,19 +36,23 @@ delete up.* from voip_usr_preferences up, voip_preferences p -- and change the preference settings to the new ones update voip_preferences set type=1, data_type='int', internal=1, read_only=1, max_occur=0, - description='The id pointing to the "Call Forward Unconditional" entry in the voip_cf_mappings table' + description='The id pointing to the "Call Forward Unconditional" entry in the voip_cf_mappings table', + modify_timestamp='1970-01-01 00:00:00' where attribute='cfu'; update voip_preferences set type=1, data_type='int', internal=1, read_only=1, max_occur=0, - description='The id pointing to the "Call Forward Busy" entry in the voip_cf_mappings table' + description='The id pointing to the "Call Forward Busy" entry in the voip_cf_mappings table', + modify_timestamp='1970-01-01 00:00:00' where attribute='cfb'; update voip_preferences set type=1, data_type='int', internal=1, read_only=1, max_occur=0, - description='The id pointing to the "Call Forward Unavailable" entry in the voip_cf_mappings table' + description='The id pointing to the "Call Forward Unavailable" entry in the voip_cf_mappings table', + modify_timestamp='1970-01-01 00:00:00' where attribute='cfna'; update voip_preferences set type=1, data_type='int', internal=1, read_only=1, max_occur=0, - description='The id pointing to the "Call Forward Timeout" entry in the voip_cf_mappings table' + description='The id pointing to the "Call Forward Timeout" entry in the voip_cf_mappings table', + modify_timestamp='1970-01-01 00:00:00' where attribute='cft'; -- finally copy over the vars from the mapping table diff --git a/db_scripts/diff/7500.up b/db_scripts/diff/7500.up index ec5d0662..6e2855cd 100644 --- a/db_scripts/diff/7500.up +++ b/db_scripts/diff/7500.up @@ -1,3 +1,3 @@ use provisioning; -UPDATE voip_preferences SET attribute='force_outbound_calls_to_peer' WHERE attribute='force_to_pstn'; +UPDATE voip_preferences SET attribute='force_outbound_calls_to_peer', modify_timestamp='1970-01-01 00:00:00' WHERE attribute='force_to_pstn'; diff --git a/db_scripts/diff/8408.up b/db_scripts/diff/8408.up index bd07e6b5..b6217dc1 100644 --- a/db_scripts/diff/8408.up +++ b/db_scripts/diff/8408.up @@ -4,9 +4,10 @@ DELETE FROM voip_preferences WHERE attribute = 'svc_ac'; UPDATE voip_preferences SET attribute = 'emergency_prefix', - description = 'A numeric string intended to be used in rewrite rules for emergency numbers.' + description = 'A numeric string intended to be used in rewrite rules for emergency numbers.', + modify_timestamp = '1970-01-01 00:00:00' WHERE attribute = 'emerg_ac'; -INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description) - VALUES('emergency_suffix', 0, 1, 0, 0, 'string', 1, 'A numeric string intended to be used in rewrite rules for emergency numbers.'); +INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp) + VALUES('emergency_suffix', 0, 1, 0, 0, 'string', 1, 'A numeric string intended to be used in rewrite rules for emergency numbers.', '1970-01-01 00:00:00'); diff --git a/db_scripts/diff/9228.up b/db_scripts/diff/9228.up index 5110ac9a..cbccd91f 100644 --- a/db_scripts/diff/9228.up +++ b/db_scripts/diff/9228.up @@ -1,3 +1,3 @@ USE provisioning; -UPDATE voip_preferences SET attribute='find_subscriber_by_uuid' WHERE attribute='find_subscriber_by_auth_user'; +UPDATE voip_preferences SET attribute='find_subscriber_by_uuid', modify_timestamp='1970-01-01 00:00:00' WHERE attribute='find_subscriber_by_auth_user';