mirror of https://github.com/sipwise/db-schema.git
Added subscriber/domain preferences: - codecs_id_filter - codecs_id_list Change-Id: I5a7a29a738261ab5333b384eb0326f79a443df73changes/62/26862/1
parent
8e5d543708
commit
d625f0bbcb
@ -0,0 +1,15 @@
|
||||
USE provisioning;
|
||||
set autocommit = 0;
|
||||
|
||||
UPDATE voip_preferences SET
|
||||
label = "Codecs filter"
|
||||
WHERE attribute = 'codecs_filter';
|
||||
|
||||
UPDATE voip_preferences SET
|
||||
label = "Codecs list"
|
||||
WHERE attribute = 'codecs_list';
|
||||
|
||||
DELETE FROM voip_preferences WHERE attribute = "codecs_id_filter";
|
||||
DELETE FROM voip_preferences WHERE attribute = "codecs_id_list";
|
||||
|
||||
commit;
|
@ -0,0 +1,57 @@
|
||||
USE provisioning;
|
||||
SET autocommit=0;
|
||||
|
||||
UPDATE voip_preferences SET
|
||||
label = "Codecs filter by name"
|
||||
WHERE attribute = 'codecs_filter';
|
||||
|
||||
UPDATE voip_preferences SET
|
||||
label = "Codecs list of names"
|
||||
WHERE attribute = 'codecs_list';
|
||||
|
||||
|
||||
SELECT id into @vpg_id FROM voip_preference_groups where name = 'NAT and Media Flow Control';
|
||||
|
||||
INSERT INTO voip_preferences
|
||||
SET
|
||||
voip_preference_groups_id = @vpg_id,
|
||||
attribute = "codecs_id_filter",
|
||||
label = "Codecs filter by ID",
|
||||
type = 0,
|
||||
max_occur = 1,
|
||||
usr_pref = 1,
|
||||
prof_pref = 0,
|
||||
dom_pref = 1,
|
||||
peer_pref = 0,
|
||||
contract_pref = 0,
|
||||
contract_location_pref = 0,
|
||||
dev_pref = 0,
|
||||
devprof_pref = 0,
|
||||
internal = 0,
|
||||
expose_to_customer = 1,
|
||||
data_type = "boolean",
|
||||
read_only = 0,
|
||||
description = "Switch between blacklisting (bl) or whitelisting (wl) of codec IDs listed in codecs_id_list (1 for wl, 0 bl).";
|
||||
|
||||
INSERT INTO voip_preferences
|
||||
SET
|
||||
voip_preference_groups_id = @vpg_id,
|
||||
attribute = "codecs_id_list",
|
||||
label = "Codecs list of IDs",
|
||||
type = 0,
|
||||
max_occur = 1,
|
||||
usr_pref = 1,
|
||||
prof_pref = 0,
|
||||
dom_pref = 1,
|
||||
peer_pref = 0,
|
||||
contract_pref = 0,
|
||||
contract_location_pref = 0,
|
||||
dev_pref = 0,
|
||||
devprof_pref = 0,
|
||||
internal = 0,
|
||||
expose_to_customer = 1,
|
||||
data_type = "string",
|
||||
read_only = 0,
|
||||
description = "Comma separated list of audio and video codecs IDs to whitelist or blacklist.";
|
||||
|
||||
commit;
|
Loading…
Reference in new issue