From 0dad2fc961a1419306d9210a85f22955512d5ed2 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Thu, 30 Aug 2018 16:16:05 +0200 Subject: [PATCH] TT#43602 VSC number rewritten using only enabled rules Change-Id: Icc6df5ac0d4360cc55a681df490a5af2e8dacab1 (cherry picked from commit 36043ae8fb889af31d060f1aa65ca17d0e78760b) --- debian/patches/sipwise/sw_vcs.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/patches/sipwise/sw_vcs.patch b/debian/patches/sipwise/sw_vcs.patch index 88316628..3efd42dd 100644 --- a/debian/patches/sipwise/sw_vcs.patch +++ b/debian/patches/sipwise/sw_vcs.patch @@ -56,7 +56,7 @@ + "voip_rewrite_rules vrr, voip_rewrite_rule_sets vrrs " \ + "where vrrs.callee_in_dpid=%llu and vrr.set_id = vrrs.id " \ + "and vrr.direction='in' and vrr.field='callee' " \ -+ "order by vrr.priority asc" ++ "and vrr.enabled = 1 order by vrr.priority asc" +#define SW_VSC_GET_DOMAIN_CALLEE_REWRITES \ + "select vrr.match_pattern, vrr.replace_pattern " \ + "from voip_rewrite_rules vrr, voip_rewrite_rule_sets vrrs, " \ @@ -64,7 +64,7 @@ + "where vdp.domain_id=%llu and vp.attribute='rewrite_callee_in_dpid' " \ + "and vdp.attribute_id = vp.id and vdp.value = vrrs.callee_in_dpid " \ + "and vrr.set_id = vrrs.id and vrr.direction='in' and " \ -+ "vrr.field='callee' order by vrr.priority asc" ++ "vrr.field='callee' and vrr.enabled = 1 order by vrr.priority asc" + +#define SW_VSC_GET_PRIMARY_NUMBER "select alias_username " \ + "from kamailio.dbaliases where username='%s' " \