diff --git a/db_scripts/diff/15258.down b/db_scripts/diff/15258.down new file mode 100644 index 00000000..5fd79c10 --- /dev/null +++ b/db_scripts/diff/15258.down @@ -0,0 +1,7 @@ +USE provisioning; +set autocommit = 0; + +DELETE FROM voip_preferences WHERE attribute = "codecs_filter"; + +commit; + diff --git a/db_scripts/diff/15258.up b/db_scripts/diff/15258.up new file mode 100644 index 00000000..6a0bb6b9 --- /dev/null +++ b/db_scripts/diff/15258.up @@ -0,0 +1,13 @@ +USE provisioning; +set autocommit = 0; + +SELECT id INTO @vpgid FROM voip_preference_groups WHERE name = 'NAT and Media Flow Control'; + +INSERT INTO voip_preferences (id, voip_preference_groups_id, attribute, label, type, max_occur, +usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, modify_timestamp, internal, +expose_to_customer, data_type, read_only, description) VALUES + (NULL, @vpgid, 'codecs_filter', 'Codecs filter', 0, 1, 1, 0, 1, 1, 0, now(), 0, 1, + 'boolean', 0, 'Switch between blacklisting (bl) or whitelisting (wl) of codecs listed in codecs_list (1 for wl, 0 bl).' + ); + +commit; diff --git a/db_scripts/diff/15259.down b/db_scripts/diff/15259.down new file mode 100644 index 00000000..675bc66d --- /dev/null +++ b/db_scripts/diff/15259.down @@ -0,0 +1,6 @@ +USE provisioning; +set autocommit = 0; + +DELETE FROM voip_preferences WHERE attribute = "codecs_list"; + +commit; diff --git a/db_scripts/diff/15259.up b/db_scripts/diff/15259.up new file mode 100644 index 00000000..a60b442a --- /dev/null +++ b/db_scripts/diff/15259.up @@ -0,0 +1,13 @@ +USE provisioning; +set autocommit = 0; + +SELECT id INTO @vpgid FROM voip_preference_groups WHERE name = 'NAT and Media Flow Control'; + +INSERT INTO voip_preferences (id, voip_preference_groups_id, attribute, label, type, max_occur, +usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, modify_timestamp, internal, +expose_to_customer, data_type, read_only, description) VALUES + (NULL, @vpgid, 'codecs_list', 'Codecs list', 0, 1, 1, 0, 1, 1, 0, now(), 0, 1, + 'string', 0, 'List of audio and video codecs to whitelist or blacklist. Valid codecs names are G722, PCMU, PCMA, speex, GSM, G723, DVI4, L16, QCELP, CN, MPA, G728, DVI4, G729, AMR, opus, telephone-event, CelB, JPEG, H261, H263, H263-1998, MPV, MP2T, nv, vp8, vp9 and h264.' + ); + +commit;