From 1e4360aa137931f7cdf5034dfcca05e7a0a246ea Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 14 Apr 2021 13:41:32 -0400 Subject: [PATCH] TT#118902 add new preference for per-call RTP debugging Change-Id: I3080488089fa88f9a307cbc4ca4e020976a67fe6 --- db_scripts/diff/15672.down | 3 +++ db_scripts/diff/15672.up | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 db_scripts/diff/15672.down create mode 100644 db_scripts/diff/15672.up diff --git a/db_scripts/diff/15672.down b/db_scripts/diff/15672.down new file mode 100644 index 00000000..b66663c8 --- /dev/null +++ b/db_scripts/diff/15672.down @@ -0,0 +1,3 @@ +use provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'rtp_debug'; diff --git a/db_scripts/diff/15672.up b/db_scripts/diff/15672.up new file mode 100644 index 00000000..eea9d31a --- /dev/null +++ b/db_scripts/diff/15672.up @@ -0,0 +1,28 @@ +USE provisioning; +SET autocommit=0; + + +SELECT id INTO @pgid FROM voip_preference_groups WHERE name = 'NAT and Media Flow Control'; + +INSERT INTO voip_preferences SET + voip_preference_groups_id = @pgid, + attribute = "rtp_debug", + label = "Enable RTP proxy debugging", + type = 0, + max_occur = 1, + usr_pref = 1, + prof_pref = 1, + dom_pref = 1, + peer_pref = 1, + contract_pref = 0, + contract_location_pref = 0, + dev_pref = 0, + devprof_pref = 0, + internal = 0, + expose_to_customer = 0, + data_type = "boolean", + read_only = 0, + description = "Enables full debug logging in the RTP proxy for all calls from or to this subscriber or peer."; + + +COMMIT;