From 79c0c9fe120f357d73cc72074bf765540e73dfc0 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 27 Sep 2021 20:29:19 +0300 Subject: [PATCH] TT#110302 Kamailio utils, improve usage of RPC command 'ul.add' The latest version of the 'ul.add' RPC command of Kamailio has 11 parameters instead of 9, we have to fix that. Change-Id: Ic70bde77eada095ddf127e18f3ef7e5b3d91478f --- lib/NGCP/Panel/Utils/Kamailio.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/NGCP/Panel/Utils/Kamailio.pm b/lib/NGCP/Panel/Utils/Kamailio.pm index d7e0123b58..4c970d8335 100644 --- a/lib/NGCP/Panel/Utils/Kamailio.pm +++ b/lib/NGCP/Panel/Utils/Kamailio.pm @@ -60,6 +60,8 @@ sub create_location { my($contact, $q, $expires, $flags, $cflags) = @$params{qw/contact q expires flags cflags/}; my $aor = get_aor($c, $prov_subscriber); my $path = _compose_location_path($c, $prov_subscriber, $params);#compose path from path or socket from params + my $socket = $params{socket} // 0; + if ($expires) { $expires = NGCP::Panel::Utils::DateTime::from_string($expires)->epoch; $expires //= 0; @@ -88,6 +90,8 @@ sub create_location { $flags $cflags 0 +0 +$socket EOF