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
changes/22/37622/1
Marco Capetta 6 years ago
parent f66435c837
commit 7327cf02a0

@ -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());

Loading…
Cancel
Save