From 28c0efc46e48c1e47a6401e04a0ffa590b31b1f5 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Fri, 6 Mar 2020 15:50:15 +0100 Subject: [PATCH] TT#76672 add concurrent_calls_quota preference Change-Id: Ib2d36ae53fa9d49ed2fc65af810691854b2613d9 --- db_scripts/diff/15581.down | 6 ++++++ db_scripts/diff/15581.up | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 db_scripts/diff/15581.down create mode 100644 db_scripts/diff/15581.up diff --git a/db_scripts/diff/15581.down b/db_scripts/diff/15581.down new file mode 100644 index 00000000..30758767 --- /dev/null +++ b/db_scripts/diff/15581.down @@ -0,0 +1,6 @@ +USE provisioning; +set autocommit = 0; + +DELETE FROM voip_preferences WHERE attribute = "concurrent_calls_quota"; + +commit; diff --git a/db_scripts/diff/15581.up b/db_scripts/diff/15581.up new file mode 100644 index 00000000..1a38a7ce --- /dev/null +++ b/db_scripts/diff/15581.up @@ -0,0 +1,25 @@ +use provisioning; +set autocommit=0; + +insert into voip_preferences + set +voip_preference_groups_id = (select id from voip_preference_groups where name="Internals"), +attribute = "concurrent_calls_quota", +label = "A user defined quota for concurrent calls, does not block calls", +type = 1, +max_occur = 1, +usr_pref = 1, +prof_pref = 1, +dom_pref = 1, +peer_pref = 1, +contract_pref = 1, +contract_location_pref = 1, +dev_pref = 0, +devprof_pref = 0, +internal = 0, +expose_to_customer = 0, +data_type = "int", +read_only = 0, +description = "Contains a user defined quota for concurrent calls, the preference does not have an impact on ongoing calls and used mostly for reporting reasons, when a soft limit for calls needs to defined, based on which the subscriber/customer/peer is reported or charged for making too many calls."; + +commit;