fix modify_timestamp to 1970 for voip_preferences in various places - WIP

remotes/svn/2.7
Richard Fuchs 13 years ago
parent 9348ffe64e
commit f22ddf47ee

@ -404,34 +404,34 @@ INSERT INTO voip_subscribers (username, domain_id, uuid, password, create_timest
FROM voip_domains WHERE domain = 'voip.sipwise.local';
-- kamailio preferences
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('lock', 0, 'int', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('block_in_mode', 1, 'bool', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('block_in_list', 0, 'string', 0);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('block_in_clir', 1, 'bool', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('block_out_mode', 1, 'bool', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('block_out_list', 0, 'string', 0);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('adm_block_in_mode', 1, 'bool', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('adm_block_in_list', 0, 'string', 0);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('adm_block_in_clir', 1, 'bool', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('adm_block_out_mode', 1, 'bool', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('adm_block_out_list', 0, 'string', 0);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('cfu', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('cfb', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('cfna', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('cft', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('ringtimeout', 1, 'int', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('cli', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('clir', 1, 'bool', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('cc', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('ac', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('svc_ac', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur) VALUES('emerg_ac', 0, 'string', 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal) VALUES('ncos_id', 1, 'int', 1, 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal) VALUES('adm_ncos_id', 1, 'int', 1, 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal) VALUES('dp_dom_caller_in', 1, 'int', 1, 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal) VALUES('dp_dom_callee_in', 1, 'int', 1, 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal) VALUES('dp_dom_caller_out', 1, 'int', 1, 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal) VALUES('dp_dom_callee_out', 1, 'int', 1, 1);
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('lock', 0, 'int', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('block_in_mode', 1, 'bool', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('block_in_list', 0, 'string', 0, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('block_in_clir', 1, 'bool', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('block_out_mode', 1, 'bool', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('block_out_list', 0, 'string', 0, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('adm_block_in_mode', 1, 'bool', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('adm_block_in_list', 0, 'string', 0, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('adm_block_in_clir', 1, 'bool', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('adm_block_out_mode', 1, 'bool', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('adm_block_out_list', 0, 'string', 0, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('cfu', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('cfb', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('cfna', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('cft', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('ringtimeout', 1, 'int', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('cli', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('clir', 1, 'bool', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('cc', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('ac', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('svc_ac', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, modify_timestamp) VALUES('emerg_ac', 0, 'string', 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal, modify_timestamp) VALUES('ncos_id', 1, 'int', 1, 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal, modify_timestamp) VALUES('adm_ncos_id', 1, 'int', 1, 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal, modify_timestamp) VALUES('dp_dom_caller_in', 1, 'int', 1, 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal, modify_timestamp) VALUES('dp_dom_callee_in', 1, 'int', 1, 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal, modify_timestamp) VALUES('dp_dom_caller_out', 1, 'int', 1, 1, '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, data_type, max_occur, internal, modify_timestamp) VALUES('dp_dom_callee_out', 1, 'int', 1, 1, '1970-01-01 00:00:00');
-- xmlrpc hosts
INSERT INTO xmlhosts VALUES ('1','127.0.0.1','8000','/RPC2','Kamailio');

@ -7,82 +7,106 @@ UPDATE provisioning.voip_preferences SET data_type = 'boolean' where data_type =
UPDATE provisioning.voip_preferences
SET read_only = TRUE,
description = 'See "lock_voip_account_subscriber" for a list of possible values. A lock value of "none" will not be returned to the caller. Read-only setting.'
description = 'See "lock_voip_account_subscriber" for a list of possible values. A lock value of "none" will not be returned to the caller. Read-only setting.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'lock';
UPDATE provisioning.voip_preferences
SET description = 'Specifies the operational mode of the incoming block list. If unset or set to a false value, it is a blacklist (accept all calls except from numbers listed in the block list), with a true value it is a whitelist (reject all calls except from numbers listed in the block list).'
SET description = 'Specifies the operational mode of the incoming block list. If unset or set to a false value, it is a blacklist (accept all calls except from numbers listed in the block list), with a true value it is a whitelist (reject all calls except from numbers listed in the block list).',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'block_in_mode';
UPDATE provisioning.voip_preferences
SET description = 'Contains wildcarded E.164 numbers 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.'
SET description = 'Contains wildcarded E.164 numbers 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 provisioning.voip_preferences
SET description = 'Incoming anonymous calls (with calling line identification restriction) are blocked if set to true.'
SET description = 'Incoming anonymous calls (with calling line identification restriction) are blocked if set to true.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'block_in_clir';
UPDATE provisioning.voip_preferences
SET description = 'Specifies the operational mode of the outgoing block list. If unset or set to a false value, it is a blacklist (allow all calls except to numbers listed in the block list), with a true value it is a whitelist (deny all calls except to numbers listed in the block list).'
SET description = 'Specifies the operational mode of the outgoing block list. If unset or set to a false value, it is a blacklist (allow all calls except to numbers listed in the block list), with a true value it is a whitelist (deny all calls except to numbers listed in the block list).',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'block_out_mode';
UPDATE provisioning.voip_preferences
SET description = 'Contains wildcarded E.164 numbers 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.'
SET description = 'Contains wildcarded E.164 numbers 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 provisioning.voip_preferences
SET description = 'Same as "block_in_mode" but may only be set by administrators.'
SET description = 'Same as "block_in_mode" but may only be set by administrators.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'adm_block_in_mode';
UPDATE provisioning.voip_preferences
SET description = 'Same as "block_in_list" but may only be set by administrators and is applied prior to the user setting.'
SET description = 'Same as "block_in_list" but may only be set by administrators and is applied prior to the user setting.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'adm_block_in_list';
UPDATE provisioning.voip_preferences
SET description = 'Same as "block_in_clir" but may only be set by administrators and is applied prior to the user setting.'
SET description = 'Same as "block_in_clir" but may only be set by administrators and is applied prior to the user setting.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'adm_block_in_clir';
UPDATE provisioning.voip_preferences
SET description = 'Same as "block_out_mode" but may only be set by administrators.'
SET description = 'Same as "block_out_mode" but may only be set by administrators.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'adm_block_out_mode';
UPDATE provisioning.voip_preferences
SET description = 'Same as "block_out_list" but may only be set by administrators and is applied prior to the user setting.'
SET description = 'Same as "block_out_list" but may only be set by administrators and is applied prior to the user setting.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'adm_block_out_list';
UPDATE provisioning.voip_preferences
SET description = 'E.164 number or complete SIP URI. "Call forward unconditional" - if set, all incoming calls are forwarded to this destination. E.164 numbers have to be fully qualified and may be prefixed by a plus sign. E.164 numbers specified in SIP URIs have to be prefixed by a plus sign if they are fully qualified but they must always carry the subscriber\'s own domain, like in "sip:+<E.164number>@<subscriber.domain>".'
SET description = 'E.164 number or complete SIP URI. "Call forward unconditional" - if set, all incoming calls are forwarded to this destination. E.164 numbers have to be fully qualified and may be prefixed by a plus sign. E.164 numbers specified in SIP URIs have to be prefixed by a plus sign if they are fully qualified but they must always carry the subscriber\'s own domain, like in "sip:+<E.164number>@<subscriber.domain>".',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'cfu';
UPDATE provisioning.voip_preferences
SET description = 'E.164 number or complete SIP URI. "Call forward busy" - if set, all incoming calls are forwarded to this destination while the subscriber is on a call. Same syntax as for "cfu".'
SET description = 'E.164 number or complete SIP URI. "Call forward busy" - if set, all incoming calls are forwarded to this destination while the subscriber is on a call. Same syntax as for "cfu".',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'cfb';
UPDATE provisioning.voip_preferences
SET description = 'E.164 number or complete SIP URI. "Call forward not available" - if set, all incoming calls are forwarded to this destination if the subscriber is not online and registered. Same syntax as for "cfu".'
SET description = 'E.164 number or complete SIP URI. "Call forward not available" - if set, all incoming calls are forwarded to this destination if the subscriber is not online and registered. Same syntax as for "cfu".',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'cfna';
UPDATE provisioning.voip_preferences
SET description = 'E.164 number or complete SIP URI. "Call forward timeout" - if set, all incoming calls are forwarded to this destination after a timeout that can be set via "ringtimeout" below. Same syntax as for "cfu".'
SET description = 'E.164 number or complete SIP URI. "Call forward timeout" - if set, all incoming calls are forwarded to this destination after a timeout that can be set via "ringtimeout" below. Same syntax as for "cfu".',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'cft';
UPDATE provisioning.voip_preferences
SET description = 'Specifies how many seconds the system should wait before redirecting the call if "cft" is set.'
SET description = 'Specifies how many seconds the system should wait before redirecting the call if "cft" is set.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'ringtimeout';
UPDATE provisioning.voip_preferences
SET description = 'E.164 number or complete SIP URI. "Calling line identification" - specifies the source E.164 number or SIP username that is used for outgoing calls. Automatically set to the primary E.164 number specified in the subscriber details.'
SET description = 'E.164 number or complete SIP URI. "Calling line identification" - specifies the source E.164 number or SIP username that is used for outgoing calls. 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 provisioning.voip_preferences
SET description = '"Calling line identification restriction" - if set to true, the CLI is not displayed on outgoing calls.'
SET description = '"Calling line identification restriction" - if set to true, the CLI is not displayed on outgoing calls.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'clir';
UPDATE provisioning.voip_preferences
SET description = 'The country code that will be used for routing of dialed numbers without a country code. Defaults to the country code of the E.164 number if the subscriber has one.'
SET description = 'The country code that will be used for routing of dialed numbers without a country code. Defaults to the country code of the E.164 number if the subscriber has one.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'cc';
UPDATE provisioning.voip_preferences
SET description = 'The area code that will be used for routing of dialed numbers without an area code. Defaults to the area code of the E.164 number if the subscriber has one.'
SET description = 'The area code that will be used for routing of dialed numbers without an area code. Defaults to the area code of the E.164 number if the subscriber has one.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'ac';
UPDATE provisioning.voip_preferences
SET description = 'The area code that will be used for routing of dialed service numbers without an area code. Defaults to "ac".'
SET description = 'The area code that will be used for routing of dialed service numbers without an area code. Defaults to "ac".',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'svc_ac';
UPDATE provisioning.voip_preferences
SET description = 'The area code that will be used for routing of dialed emergency numbers without an area code. Defaults to "ac".'
SET description = 'The area code that will be used for routing of dialed emergency numbers without an area code. Defaults to "ac".',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'emerg_ac';
UPDATE provisioning.voip_preferences
SET internal = -1,
description = 'Specifies the NCOS level that applies to the user.'
description = 'Specifies the NCOS level that applies to the user.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'ncos';
UPDATE provisioning.voip_preferences
SET internal = -1,
description = 'Same as "ncos", but may only be set by administrators and is applied prior to the user setting.'
description = 'Same as "ncos", but may only be set by administrators and is applied prior to the user setting.',
modify_timestamp = '1970-01-01 00:00:00'
WHERE attribute = 'adm_ncos';
INSERT INTO provisioning.voip_preferences (attribute, type, data_type, max_occur, internal, description)
VALUES('ncos', 0, 'string', 1, -1, 'Specifies the NCOS level that applies to the user.');
INSERT INTO provisioning.voip_preferences (attribute, type, data_type, max_occur, internal, description)
VALUES('adm_ncos', 0, 'string', 1, -1, 'Same as "ncos", but may only be set by administrators and is applied prior to the user setting.');
INSERT INTO provisioning.voip_preferences (attribute, type, data_type, max_occur, internal, description, modify_timestamp)
VALUES('ncos', 0, 'string', 1, -1, 'Specifies the NCOS level that applies to the user.', '1970-01-01 00:00:00');
INSERT INTO provisioning.voip_preferences (attribute, type, data_type, max_occur, internal, description, modify_timestamp)
VALUES('adm_ncos', 0, 'string', 1, -1, 'Same as "ncos", but may only be set by administrators and is applied prior to the user setting.', '1970-01-01 00:00:00');

@ -1 +1 @@
UPDATE provisioning.voip_preferences SET data_type = 'int' where attribute = 'lock';
UPDATE provisioning.voip_preferences SET data_type = 'int', modify_timestamp='1970-01-01 00:00:00' where attribute = 'lock';

@ -1,5 +1,5 @@
USE provisioning;
INSERT INTO voip_preferences (attribute, type, max_occur, usr_pref, dom_pref, peer_pref, internal, data_type, read_only, description) VALUES
('concurrent_max_per_account', 1, 1, 1, 1, 0, 0, 'int', 0, 'Maximum number of concurrent sessions (calls) for subscribers within the same account'),
('concurrent_max_out_per_account', 1, 1, 1, 1, 0, 0, 'int', 0, 'Maximum number of concurrent outgoing sessions (calls) for subscribers within the same account');
INSERT INTO voip_preferences (attribute, type, max_occur, usr_pref, dom_pref, peer_pref, internal, data_type, read_only, description, modify_timestamp) VALUES
('concurrent_max_per_account', 1, 1, 1, 1, 0, 0, 'int', 0, 'Maximum number of concurrent sessions (calls) for subscribers within the same account', '1970-01-01 00:00:00),
('concurrent_max_out_per_account', 1, 1, 1, 1, 0, 0, 'int', 0, 'Maximum number of concurrent outgoing sessions (calls) for subscribers within the same account', '1970-01-01 00:00:00);

@ -3,7 +3,7 @@ USE provisioning;
INSERT INTO voip_preferences
(attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES
('inbound_uprn', 0, 1, 1, 1, 1, '0', 0, 'enum', 0, 'Specifies the way to obtain the User-Provided Redirecting CLI. Possible options are use NPN of forwarding subscriber or respect inbound Diversion header. Same validation rules as for UPN apply to UPRN. NGCP does not stack UPRNs up if the call is forwarded several times.');
('inbound_uprn', 0, 1, 1, 1, 1, '1970-01-01 00:00:00', 0, 'enum', 0, 'Specifies the way to obtain the User-Provided Redirecting CLI. Possible options are use NPN of forwarding subscriber or respect inbound Diversion header. Same validation rules as for UPN apply to UPRN. NGCP does not stack UPRNs up if the call is forwarded several times.');
SELECT last_insert_id() INTO @uprn_pref_id;
INSERT INTO voip_preferences_enum
(preference_id, label, value, usr_pref, dom_pref, peer_pref, default_val)
@ -18,7 +18,7 @@ VALUES
INSERT INTO voip_preferences
(attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES
('outbound_diversion', 0, 1, 1, 1, 1, '0', 0, 'enum', 0, 'The content to put into the Diversion header for outbound calls (use "None" to not set header at all)');
('outbound_diversion', 0, 1, 1, 1, 1, '1970-01-01 00:00:00', 0, 'enum', 0, 'The content to put into the Diversion header for outbound calls (use "None" to not set header at all)');
SELECT last_insert_id() INTO @div_pref_id;
INSERT INTO voip_preferences_enum
(preference_id, label, value, usr_pref, dom_pref, peer_pref, default_val)
@ -62,4 +62,4 @@ VALUES
(@ppu_pref_id, 'UPRN (if set) or Network-Provided-Number', 'uprn/npn', 1, 1, 1, 0),
(@ppu_pref_id, 'UPRN (if set) or User-Provided-Number', 'uprn/upn', 1, 1, 1, 0),
(@ppu_pref_id, 'UPRN (if set) or Authentication-User', 'uprn/auth_user', 1, 1, 1, 0),
(@ppu_pref_id, 'UPRN (if set) or Received Display-name', 'uprn/rcv_display', 1, 1, 1, 0);
(@ppu_pref_id, 'UPRN (if set) or Received Display-name', 'uprn/rcv_display', 1, 1, 1, 0);

@ -1,16 +1,16 @@
USE provisioning;
INSERT INTO voip_preferences (id, attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES (NULL, 'allowed_ips_grp', 1, 0, 1, 0, 0, NULL, 0, 'string', 0, 'Group of addresses and/or IP nets allowed access.');
VALUES (NULL, 'allowed_ips_grp', 1, 0, 1, 0, 0, '1970-01-01 00:00:00', 0, 'string', 0, 'Group of addresses and/or IP nets allowed access.');
INSERT INTO voip_preferences (id, attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES (NULL, 'man_allowed_ips_grp', 1, 0, 1, 0, 0, NULL, 0, 'string', 0, 'Group of addresses and/or IP nets allowed access.');
VALUES (NULL, 'man_allowed_ips_grp', 1, 0, 1, 0, 0, '1970-01-01 00:00:00', 0, 'string', 0, 'Group of addresses and/or IP nets allowed access.');
INSERT INTO voip_preferences (id, attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES (NULL, 'allowed_ips', 1, 0, 1, 0, 0, NULL, 0, 'string', 0, 'Allow access from the given list of IP addresses and/or IP nets.');
VALUES (NULL, 'allowed_ips', 1, 0, 1, 0, 0, '1970-01-01 00:00:00', 0, 'string', 0, 'Allow access from the given list of IP addresses and/or IP nets.');
INSERT INTO voip_preferences (id, attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES (NULL, 'man_allowed_ips', 1, 0, 1, 0, 0, NULL, 0, 'string', 0, 'Allow access from the given list of IP addresses and/or IP nets.');
VALUES (NULL, 'man_allowed_ips', 1, 0, 1, 0, 0, '1970-01-01 00:00:00', 0, 'string', 0, 'Allow access from the given list of IP addresses and/or IP nets.');
INSERT INTO voip_preferences (id, attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES (NULL, 'ignore_allowed_ips', 1, 1, 1, 0, 0, NULL, 0, 'boolean', 0, 'Ignore preferences "allowed_ips" and "man_allowed_ips".');
VALUES (NULL, 'ignore_allowed_ips', 1, 1, 1, 0, 0, '1970-01-01 00:00:00', 0, 'boolean', 0, 'Ignore preferences "allowed_ips" and "man_allowed_ips".');

@ -1 +1 @@
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description) VALUES('no_nat_sipping', 1, 1, 1, 0, 'boolean', 1, 'Don\'t do NAT ping for domain/user. Use with caution: this only makes sense on the access network which does not need pings (e.g. CDMA)');
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description, modify_timestamp) VALUES('no_nat_sipping', 1, 1, 1, 0, 'boolean', 1, 'Don\'t do NAT ping for domain/user. Use with caution: this only makes sense on the access network which does not need pings (e.g. CDMA)', '1970-01-01 00:00:00');

@ -1,4 +1,4 @@
USE provisioning;
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
VALUES('ip_header', 0, 1, 1, 1, 'string', 1, 'The SIP header to take the IP address for logging it into CDRs.');
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
VALUES('ip_header', 0, 1, 1, 1, 'string', 1, 'The SIP header to take the IP address for logging it into CDRs.', '1970-01-01 00:00:00');

@ -1,4 +1,4 @@
USE provisioning;
UPDATE voip_preferences SET internal=1 WHERE attribute='allowed_ips_grp';
UPDATE voip_preferences SET internal=1 WHERE attribute='man_allowed_ips_grp';
UPDATE voip_preferences SET internal=1, modify_timestamp='1970-01-01 00:00:00' WHERE attribute='allowed_ips_grp';
UPDATE voip_preferences SET internal=1, modify_timestamp='1970-01-01 00:00:00' WHERE attribute='man_allowed_ips_grp';

@ -1,6 +1,6 @@
USE provisioning;
UPDATE voip_preferences SET dom_pref=1 WHERE attribute='ncos_id';
UPDATE voip_preferences SET dom_pref=1 WHERE attribute='adm_ncos_id';
UPDATE voip_preferences SET dom_pref=1 WHERE attribute='ncos';
UPDATE voip_preferences SET dom_pref=1 WHERE attribute='adm_ncos';
UPDATE voip_preferences SET dom_pref=1, modify_timestamp='1970-01-01 00:00:00' WHERE attribute='ncos_id';
UPDATE voip_preferences SET dom_pref=1, modify_timestamp='1970-01-01 00:00:00' WHERE attribute='adm_ncos_id';
UPDATE voip_preferences SET dom_pref=1, modify_timestamp='1970-01-01 00:00:00' WHERE attribute='ncos';
UPDATE voip_preferences SET dom_pref=1, modify_timestamp='1970-01-01 00:00:00' WHERE attribute='adm_ncos';

@ -1,7 +1,7 @@
USE provisioning
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
VALUES('sst_enable', 0, 1, 1, 1, 'enum', 1, 'Enable SIP Session Timers.');
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
VALUES('sst_enable', 0, 1, 1, 1, 'enum', 1, 'Enable SIP Session Timers.', '1970-01-01 00:00:00');
INSERT INTO voip_preferences_enum (preference_id, label, value, usr_pref, dom_pref, peer_pref)
VALUES ((SELECT id FROM voip_preferences WHERE attribute = 'sst_enable'), 'use domain default', NULL, 1, 0, 0);
@ -10,14 +10,14 @@ INSERT INTO voip_preferences_enum (preference_id, label, value, usr_pref, dom_pr
INSERT INTO voip_preferences_enum (preference_id, label, value, usr_pref, dom_pref, peer_pref)
VALUES ((SELECT id FROM voip_preferences WHERE attribute = 'sst_enable'), 'no', 'no', 1, 1, 1);
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
VALUES('sst_expires', 1, 1, 1, 1, 'int', 1, 'SIP Session Timers refresh interval (seconds). Should be always greater than min_timer preference. SBC will make refresh at the half of this interval.');
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
VALUES('sst_min_timer', 1, 1, 1, 1, 'int', 1, 'Set Min-SE value in SBC. This is also used to build 422 reply if remote Min-SE is smaller than local Min-SE.');
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
VALUES('sst_max_timer', 1, 1, 1, 1, 'int', 1, 'Sets upper limit on accepted Min-SE value in in SBC.');
INSERT INTO voip_preferences (attribute, type, max_occur, usr_pref, dom_pref, peer_pref, internal, data_type, read_only, description)
VALUES('sst_refresh_method', 0, 1, 1, 1, 1, 0, 'enum', 0, 'SIP Session Timers refresh method.');
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
VALUES('sst_expires', 1, 1, 1, 1, 'int', 1, 'SIP Session Timers refresh interval (seconds). Should be always greater than min_timer preference. SBC will make refresh at the half of this interval.', '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
VALUES('sst_min_timer', 1, 1, 1, 1, 'int', 1, 'Set Min-SE value in SBC. This is also used to build 422 reply if remote Min-SE is smaller than local Min-SE.', '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
VALUES('sst_max_timer', 1, 1, 1, 1, 'int', 1, 'Sets upper limit on accepted Min-SE value in in SBC.', '1970-01-01 00:00:00');
INSERT INTO voip_preferences (attribute, type, max_occur, usr_pref, dom_pref, peer_pref, internal, data_type, read_only, description, modify_timestamp)
VALUES('sst_refresh_method', 0, 1, 1, 1, 1, 0, 'enum', 0, 'SIP Session Timers refresh method.', '1970-01-01 00:00:00');
INSERT INTO voip_preferences_enum (preference_id, label, value, usr_pref, dom_pref, peer_pref)
VALUES ((SELECT id FROM voip_preferences WHERE attribute = 'sst_refresh_method'), 'use domain default', NULL, 1, 0, 0);

@ -3,7 +3,7 @@ USE provisioning;
INSERT INTO voip_preferences
(attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES
('outbound_from_user', 0, 1, 1, 1, 1, '0', 0, 'enum', 0, 'The content to put into the From username for outbound calls');
('outbound_from_user', 0, 1, 1, 1, 1, '1970-01-01 00:00:00', 0, 'enum', 0, 'The content to put into the From username for outbound calls');
SELECT last_insert_id() INTO @pref_id;
INSERT INTO voip_preferences_enum
(preference_id, label, value, usr_pref, dom_pref, peer_pref, default_val)
@ -16,7 +16,7 @@ VALUES
INSERT INTO voip_preferences
(attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES
('outbound_from_display', 0, 1, 1, 1, 1, '0', 0, 'enum', 0, 'The content to put into the From display-name for outbound calls');
('outbound_from_display', 0, 1, 1, 1, 1, '1970-01-01 00:00:00', 0, 'enum', 0, 'The content to put into the From display-name for outbound calls');
SELECT last_insert_id() INTO @pref_id;
INSERT INTO voip_preferences_enum
(preference_id, label, value, usr_pref, dom_pref, peer_pref, default_val)
@ -30,7 +30,7 @@ VALUES
INSERT INTO voip_preferences
(attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES
('outbound_pai_user', 0, 1, 1, 1, 1, '0', 0, 'enum', 0, 'The content to put into the P-Asserted-Identity username for outbound calls (use "None" to not set header at all)');
('outbound_pai_user', 0, 1, 1, 1, 1, '1970-01-01 00:00:00', 0, 'enum', 0, 'The content to put into the P-Asserted-Identity username for outbound calls (use "None" to not set header at all)');
SELECT last_insert_id() INTO @pref_id;
INSERT INTO voip_preferences_enum
(preference_id, label, value, usr_pref, dom_pref, peer_pref, default_val)
@ -44,7 +44,7 @@ VALUES
INSERT INTO voip_preferences
(attribute, type, max_occur, usr_pref, dom_pref, peer_pref, modify_timestamp, internal, data_type, read_only, description)
VALUES
('outbound_ppi_user', 0, 1, 1, 1, 1, '0', 0, 'enum', 0, 'The content to put into the P-Preferred-Identity username for outbound calls (use "None" to not set header at all)');
('outbound_ppi_user', 0, 1, 1, 1, 1, '1970-01-01 00:00:00', 0, 'enum', 0, 'The content to put into the P-Preferred-Identity username for outbound calls (use "None" to not set header at all)');
SELECT last_insert_id() INTO @pref_id;
INSERT INTO voip_preferences_enum
(preference_id, label, value, usr_pref, dom_pref, peer_pref, default_val)

@ -17,7 +17,7 @@ INSERT INTO voip_preferences_enum
VALUES
(@ofu_pref_id, 'use domain default', NULL, 1, 0, 0, 0),
(@ofu_pref_id, 'Network-Provided-Number', 'npn', 1, 0, 0, 0);
UPDATE voip_preferences SET description='The content to put into the From username for outbound calls from the platform to the subscriber' WHERE id=@ofu_pref_id;
UPDATE voip_preferences SET description='The content to put into the From username for outbound calls from the platform to the subscriber', modify_timestamp='1970-01-01 00:00:00' WHERE id=@ofu_pref_id;
SELECT id FROM voip_preferences WHERE attribute='outbound_from_display' INTO @ofd_pref_id;
UPDATE voip_preferences_enum SET usr_pref=0 WHERE preference_id=@ofd_pref_id AND
@ -27,7 +27,7 @@ INSERT INTO voip_preferences_enum
VALUES
(@ofd_pref_id, 'use domain default', NULL, 1, 0, 0, 0),
(@ofd_pref_id, 'None', 'none', 1, 0, 0, 0);
UPDATE voip_preferences SET description='The content to put into the From display-name for outbound calls from the platform to the subscriber' WHERE id=@ofd_pref_id;
UPDATE voip_preferences SET description='The content to put into the From display-name for outbound calls from the platform to the subscriber', modify_timestamp='1970-01-01 00:00:00' WHERE id=@ofd_pref_id;
SELECT id FROM voip_preferences WHERE attribute='outbound_pai_user' INTO @pau_pref_id;
UPDATE voip_preferences_enum SET usr_pref=0 WHERE preference_id=@pau_pref_id AND
@ -37,7 +37,7 @@ INSERT INTO voip_preferences_enum
VALUES
(@pau_pref_id, 'use domain default', NULL, 1, 0, 0, 0),
(@pau_pref_id, 'None', 'none', 1, 0, 0, 0);
UPDATE voip_preferences SET description='The content to put into the P-Asserted-Identity username for outbound calls from the platform to the subscriber (use "None" to not set header at all)' WHERE id=@pau_pref_id;
UPDATE voip_preferences SET description='The content to put into the P-Asserted-Identity username for outbound calls from the platform to the subscriber (use "None" to not set header at all)', modify_timestamp='1970-01-01 00:00:00' WHERE id=@pau_pref_id;
SELECT id FROM voip_preferences WHERE attribute='outbound_ppi_user' INTO @ppu_pref_id;
UPDATE voip_preferences_enum SET usr_pref=0 WHERE preference_id=@ppu_pref_id AND
@ -47,5 +47,5 @@ INSERT INTO voip_preferences_enum
VALUES
(@ppu_pref_id, 'use domain default', NULL, 1, 0, 0, 0),
(@ppu_pref_id, 'None', 'none', 1, 0, 0, 0);
UPDATE voip_preferences SET description='The content to put into the P-Preferred-Identity username for outbound calls from the platform to the subscriber (use "None" to not set header at all)' WHERE id=@ppu_pref_id;
UPDATE voip_preferences SET description='The content to put into the P-Preferred-Identity username for outbound calls from the platform to the subscriber (use "None" to not set header at all)', modify_timestamp='1970-01-01 00:00:00' WHERE id=@ppu_pref_id;

Loading…
Cancel
Save