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 cc34719693)
(cherry picked from commit 88b52e89e3)
mr26.1.1
Marco Capetta 2 weeks ago
parent ff4b083cb2
commit 71d92bf903

@ -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}},

Loading…
Cancel
Save