From e2ad3f094eaeaf62059668cd1eb5764ef29227aa Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Thu, 30 Jul 2026 15:58:52 +0200 Subject: [PATCH] MT#56865 Fix autoprovisioning of Grandstream devices The autoprovisioning of Grandstream devices was not working since a while or even never really worked. In the SOAP request to register the new device in the GAPS server was missing the '$query_string' parameter, thus the server responded back with: response=200; page={"code":7,"desc":"try to http base authorization failed","ret":null,"time":1785401492}#012; err=try to http base authorization failed; This change should not affect the provisioning of other vendors because the '$query_string' parameter is set to an empty string by default. Change-Id: I6637ce82351c46ec631c1047ec50ccb5404228e1 (cherry picked from commit cc34719693b11a101547ffb70c322e31c40a7500) --- lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm b/lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm index 4f111c12d0..96c535635d 100644 --- a/lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm +++ b/lib/NGCP/Panel/Utils/DeviceBootstrap/VendorRPC.pm @@ -104,7 +104,7 @@ sub rpc_https_call{ alarm(25); my $ua = $self->_ua; $cfg->{port} //= ''; - my $uri = $cfg->{proto}.'://'.$cfg->{host}.($cfg->{port} ? ':' : '').$cfg->{port}.$cfg->{path}; + my $uri = $cfg->{proto}.'://'.$cfg->{host}.($cfg->{port} ? ':' : '').$cfg->{port}.$cfg->{path}.$cfg->{query_string}; my $request = POST $uri, Content_Type => $cfg->{content_type} // 'text/xml', %{$cfg->{headers}},