From 6ab376186bb6634979a8077739c442a59d779b3d Mon Sep 17 00:00:00 2001 From: Andreas Granig <agranig@sipwise.com> Date: Thu, 16 Aug 2012 15:13:53 +0000 Subject: [PATCH] Add preferences for limiting calls per account. --- db_scripts/diff/10290.down | 3 +++ db_scripts/diff/10290.up | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 db_scripts/diff/10290.down create mode 100644 db_scripts/diff/10290.up diff --git a/db_scripts/diff/10290.down b/db_scripts/diff/10290.down new file mode 100644 index 00000000..679ceb4c --- /dev/null +++ b/db_scripts/diff/10290.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE from voip_preferences where attribute in ('concurrent_max_per_account', 'concurrent_max_out_per_account'); diff --git a/db_scripts/diff/10290.up b/db_scripts/diff/10290.up new file mode 100644 index 00000000..8d9d2ef2 --- /dev/null +++ b/db_scripts/diff/10290.up @@ -0,0 +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');