From 7dbbe5ea3630a90afa0348787ca771afcde1027a Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 23 Jan 2019 17:14:34 +0100 Subject: [PATCH] TT#50815 Fix HeaderManipulations invalidate request to kamailio * kamailio does not accept non-sip tcp messages with an empty body, therefore, also sending the invalidating set_id in the body is correctly processed by the kamailio endpoint Change-Id: I4e4f04bd5279e6f7e39f947d54e656737f81e0e5 --- lib/NGCP/Panel/Utils/HeaderManipulations.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/HeaderManipulations.pm b/lib/NGCP/Panel/Utils/HeaderManipulations.pm index 5a584b198a..147c62e49a 100644 --- a/lib/NGCP/Panel/Utils/HeaderManipulations.pm +++ b/lib/NGCP/Panel/Utils/HeaderManipulations.pm @@ -60,7 +60,7 @@ sub invalidate_ruleset { my $s = Net::HTTP->new(Host => $ip, KeepAlive => 0, PeerPort => $port, Timeout => 5); $s or die "could not connect to server $hostid"; - my $res = $s->write_request("POST", $path || "/", %headers, ''); + my $res = $s->write_request("POST", $path || "/", %headers, $set_id); $res or die "did not get result from $hostid"; my ($code, $status, @hdrs) = $s->read_response_headers();