more fixing of timestamps

remotes/svn/2.7
Richard Fuchs 13 years ago
parent b040890661
commit 23c9f8cd9b

@ -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';

@ -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)

@ -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

@ -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';

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

@ -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';

Loading…
Cancel
Save