mirror of https://github.com/sipwise/db-schema.git
* set rn parameter lnp_to_rn preference (peer/usr/dom) * add npdi parameter lnp_add_npdi (peer/usr/dom) * allow lnp queries for local subscribers lnp_for_local_sub (usr/dom) Change-Id: I62ed95b436f3199a019e5e10e5afc0f09045e234changes/33/5633/4
parent
2844d18d4c
commit
811d638b38
@ -0,0 +1,8 @@
|
||||
SET AUTOCOMMIT=0;
|
||||
|
||||
USE provisioning;
|
||||
|
||||
DELETE FROM voip_preferences
|
||||
WHERE attribute IN ('lnp_to_rn', 'lnp_add_npdi', 'lnp_for_local_sub');
|
||||
|
||||
COMMIT;
|
||||
@ -0,0 +1,40 @@
|
||||
SET AUTOCOMMIT=0;
|
||||
|
||||
USE provisioning;
|
||||
|
||||
SELECT id INTO @pgid FROM voip_preference_groups WHERE name = 'Internals';
|
||||
|
||||
INSERT INTO voip_preferences
|
||||
(voip_preference_groups_id, attribute, label, type, max_occur,
|
||||
usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, contract_location_pref,
|
||||
modify_timestamp, internal, expose_to_customer, data_type, read_only,
|
||||
description)
|
||||
VALUES
|
||||
(@pgid, 'lnp_to_rn', 'LNP Routing number to rn param', 1, 1,
|
||||
1, 0, 1, 1, 0, 0,
|
||||
now(), 0, 0, 'boolean', 0,
|
||||
'Defines how to provide the routing number after a LNP query. If enabled, rn parameter will be used.');
|
||||
|
||||
INSERT INTO voip_preferences
|
||||
(voip_preference_groups_id, attribute, label, type, max_occur,
|
||||
usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, contract_location_pref,
|
||||
modify_timestamp, internal, expose_to_customer, data_type, read_only,
|
||||
description)
|
||||
VALUES
|
||||
(@pgid, 'lnp_add_npdi', 'LNP npdi param', 1, 1,
|
||||
1, 0, 1, 1, 0, 0,
|
||||
now(), 0, 0, 'boolean', 0,
|
||||
'If enabled, npdi parameter will be added if there is a LNP query.');
|
||||
|
||||
INSERT INTO voip_preferences
|
||||
(voip_preference_groups_id, attribute, label, type, max_occur,
|
||||
usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, contract_location_pref,
|
||||
modify_timestamp, internal, expose_to_customer, data_type, read_only,
|
||||
description)
|
||||
VALUES
|
||||
(@pgid, 'lnp_for_local_sub', 'LNP for local subscribers', 1, 1,
|
||||
1, 0, 1, 0, 0, 0,
|
||||
now(), 0, 0, 'boolean', 0,
|
||||
'If enabled allows LNP queries for local subscribers.');
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in new issue