[OpenSIPS-Users] Opensips-cp 8.3.0 HTTP/1.1 400 Bad Request..

Mario San Vicente mrsanvicente at gmail.com
Wed Oct 28 19:06:09 EST 2020


Hello Everyone,

Here i have a quick question.

I installed opensips-cp 8.3.0 in a Centos installation from
sources version: opensips 3.1.

I seems to me that  the configuration is fine, mysql DB, and users.

But Opensips-cp can't speak MI to opensips.

I get the following at trace level:

T 127.0.0.1:34550 -> 127.0.0.1:8888 [AP] #144
  POST /json HTTP/1.1..Host: 127.0.0.1:8888..Accept: */*..Content-Type:
application/json..Content-Length:
78....{"jsonrpc":"2.0","id":1,"method":"dlg_lis
  t","params":{"index":0,"counter":20}}........w.._....
#
T 127.0.0.1:8888 -> 127.0.0.1:34550 [A] #145
  8...w.._XZ......
#
T 127.0.0.1:8888 -> 127.0.0.1:34550 [AP] #146
  HTTP/1.1 400 Bad Request..Content-Length: 46..Content-Type:
text/html..Date: Wed, 28 Oct 2020 18:59:03 GMT....<html><body>Unable to
parse URL!</body></
  html>........w.._C...
#

And at php level iget:

 [:error] [pid 17689] [client x.x.x.x:55303] PHP Warning:  Creating default
object from empty value in
/var/www/html/opensips-cp/config/tools/system/dialog/local.inc.php on line
27, referer: http://x.x.x.x/cp/tools/system/dialog/dialog.php?action=refresh
 [:error] [pid 17689] [client x.x.x.x:55303] PHP Notice:  Use of undefined
constant CURLINFO_RESPONSE_CODE - assumed 'CURLINFO_RESPONSE_CODE' in
/var/www/html/opensips-cp/web/common/mi_comm.php on line 50, referer:
http://x.x.x.x/cp/tools/system/dialog/dialog.php?action=refresh
[:error] [pid 17689] [client x.x.x.x:55303] PHP Warning:  curl_getinfo()
expects parameter 2 to be long, string given in
/var/www/html/opensips-cp/web/common/mi_comm.php on line 50, referer:
http://x.x.x.x/cp/tools/system/dialog/dialog.php?action=refresh
[:error] [pid 17689] [client x.x.x.x:55303] PHP Warning:
 array_key_exists() expects parameter 2 to be array, null given in
/var/www/html/opensips-cp/web/common/mi_comm.php on line 61, referer:
http://x.x.x.x/cp/tools/system/dialog/dialog.php?action=refresh

 php -v
PHP 7.3.24 (cli)


Anyone have any idea why it fails??

Thank you very much
-- 
Mario SV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201028/45dc730d/attachment-0001.html>


More information about the Users mailing list