From e3b203862ed5064a3b7837d64af95e11eccfbded Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 16 Dec 2021 10:23:15 -0500 Subject: [PATCH] TT#58659 fix transcode_dtmf/cn pref type All "transcode" preferences are listed as type "0" in the DB except for DTMF and CN which are listed as "1". The LUA/Kamailio scripts fail to include tyoe "1" preferences in the list of flags given to rtpengine. Change the type to "0" to fix. Change-Id: I38f0d9f1394e07b190f1bd196ac85f456017ae6f (cherry picked from commit 531cc5c14d9b42bf783e7c2c745430b50f9e2d8b) --- db_scripts/diff/15709.down | 10 ++++++++++ db_scripts/diff/15709.up | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 db_scripts/diff/15709.down create mode 100644 db_scripts/diff/15709.up diff --git a/db_scripts/diff/15709.down b/db_scripts/diff/15709.down new file mode 100644 index 00000000..61d791b8 --- /dev/null +++ b/db_scripts/diff/15709.down @@ -0,0 +1,10 @@ +USE provisioning; +UPDATE voip_preferences SET type = 1 WHERE attribute = 'transcode_dtmf'; +UPDATE voip_preferences SET type = 1 WHERE attribute = 'transcode_cn'; +USE kamailio; +UPDATE usr_preferences SET type = 1 WHERE attribute = 'transcode_dtmf'; +UPDATE usr_preferences SET type = 1 WHERE attribute = 'transcode_cn'; +UPDATE dom_preferences SET type = 1 WHERE attribute = 'transcode_dtmf'; +UPDATE dom_preferences SET type = 1 WHERE attribute = 'transcode_cn'; +UPDATE peer_preferences SET type = 1 WHERE attribute = 'transcode_dtmf'; +UPDATE peer_preferences SET type = 1 WHERE attribute = 'transcode_cn'; diff --git a/db_scripts/diff/15709.up b/db_scripts/diff/15709.up new file mode 100644 index 00000000..d4487ebf --- /dev/null +++ b/db_scripts/diff/15709.up @@ -0,0 +1,10 @@ +USE provisioning; +UPDATE voip_preferences SET type = 0 WHERE attribute = 'transcode_dtmf'; +UPDATE voip_preferences SET type = 0 WHERE attribute = 'transcode_cn'; +USE kamailio; +UPDATE usr_preferences SET type = 0 WHERE attribute = 'transcode_dtmf'; +UPDATE usr_preferences SET type = 0 WHERE attribute = 'transcode_cn'; +UPDATE dom_preferences SET type = 0 WHERE attribute = 'transcode_dtmf'; +UPDATE dom_preferences SET type = 0 WHERE attribute = 'transcode_cn'; +UPDATE peer_preferences SET type = 0 WHERE attribute = 'transcode_dtmf'; +UPDATE peer_preferences SET type = 0 WHERE attribute = 'transcode_cn';