From 7327cf02a08fe5430e7ba50ad1070723015df9ad Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Wed, 12 Feb 2020 16:41:39 +0100 Subject: [PATCH] TT#75911 Execute kamailio lcr.reload after the gw removal The kamailio lcr.reload RPC command was executed before the gateway were actually removed from the DB. The execution has been moved afterwards. Change-Id: I5c514744cf49a4a32f2a8f08dc8f2a45c0b3c87a --- lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm b/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm index 567a354968..da42b48182 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm @@ -115,8 +115,8 @@ sub DELETE :Allow { $p->delete; } $item->delete; - NGCP::Panel::Utils::Peering::_sip_lcr_reload(c => $c); $guard->commit; + NGCP::Panel::Utils::Peering::_sip_lcr_reload(c => $c); $c->response->status(HTTP_NO_CONTENT); $c->response->body(q());