Re: [OpenSIPS-Users] - OpenSIPS-CP

2022-12-15 Thread Nitesh Divecha
Hello All,

Solved this issue by downgrading from PHP8.1 to PHP7.4.



On Wed, Dec 14, 2022 at 5:01 PM Nitesh Divecha 
wrote:

> Hello All,
>
> I'm setting up a fresh install and running into issues with OpenSIPS
> Control Panel 9.3.2.
>
> System specs:
> Ubuntu 22.04.1 LTS
> OpenSIPS 3.3.2
> OpenSIPS Control Panel (
> https://github.com/OpenSIPS/opensips-cp/archive/9.3.2.zip)
>
> CP was installed successfully and I was able to login with user/pass but
> when I click on (Users -> User management or Alias management) or any
> (System -> Address, etc) it throws PHP exceptions:
>
> [Wed Dec 14 21:49:29.216426 2022] [php:error] [pid 32857] [client
> 10.0.0.34:57311] PHP Fatal error:  Uncaught Error: Attempt to assign
> property "user_management" on null in
> /var/www/html/opensips-cp/config/tools/users/user_management/settings.inc.php:25\nStack
> trace:\n#0 /var/www/html/opensips-cp/web/common/cfg_comm.php(203):
> require()\n#1 /var/www/html/opensips-cp/web/common/cfg_comm.php(340):
> get_params_from_tool()\n#2
> /var/www/html/opensips-cp/web/common/cfg_comm.php(332):
> session_load_from_tool()\n#3
> /var/www/html/opensips-cp/web/tools/users/user_management/template/header.php(32):
> session_load()\n#4
> /var/www/html/opensips-cp/web/tools/users/user_management/user_management.php(24):
> require('...')\n#5 {main}\n  thrown in
> /var/www/html/opensips-cp/config/tools/users/user_management/settings.inc.php
> on line 25, referer: http://10.0.0.200/cp/menu.php
> [Wed Dec 14 21:49:47.057497 2022] [php:warn] [pid 32858] [client
> 10.0.0.34:57323] PHP Warning:  Undefined array key "nodes" in
> /var/www/html/opensips-cp/config/boxes.load.php on line 50, referer:
> http://10.0.0.200/cp/menu.php
> [Wed Dec 14 21:49:47.057553 2022] [php:warn] [pid 32858] [client
> 10.0.0.34:57323] PHP Warning:  Undefined array key "nodes" in
> /var/www/html/opensips-cp/config/boxes.load.php on line 50, referer:
> http://10.0.0.200/cp/menu.php
> [Wed Dec 14 21:49:47.057564 2022] [php:warn] [pid 32858] [client
> 10.0.0.34:57323] PHP Warning:  Undefined array key "nodes" in
> /var/www/html/opensips-cp/config/boxes.load.php on line 50, referer:
> http://10.0.0.200/cp/menu.php
> [Wed Dec 14 21:49:47.057629 2022] [php:error] [pid 32858] [client
> 10.0.0.34:57323] PHP Fatal error:  Uncaught Error: Attempt to assign
> property "alias_management" on null in
> /var/www/html/opensips-cp/config/tools/users/alias_management/settings.inc.php:24\nStack
> trace:\n#0 /var/www/html/opensips-cp/web/common/cfg_comm.php(203):
> require()\n#1 /var/www/html/opensips-cp/web/common/cfg_comm.php(340):
> get_params_from_tool()\n#2
> /var/www/html/opensips-cp/web/common/cfg_comm.php(332):
> session_load_from_tool()\n#3
> /var/www/html/opensips-cp/web/tools/users/alias_management/template/header.php(33):
> session_load()\n#4
> /var/www/html/opensips-cp/web/tools/users/alias_management/alias_management.php(24):
> require('...')\n#5 {main}\n  thrown in
> /var/www/html/opensips-cp/config/tools/users/alias_management/settings.inc.php
> on line 24, referer: http://10.0.0.200/cp/menu.php
> [Wed Dec 14 21:49:52.209761 2022] [php:warn] [pid 32859] [client
> 10.0.0.34:57330] PHP Warning:  Undefined array key "nodes" in
> /var/www/html/opensips-cp/config/boxes.load.php on line 50, referer:
> http://10.0.0.200/cp/menu.php
> [Wed Dec 14 21:49:52.209814 2022] [php:warn] [pid 32859] [client
> 10.0.0.34:57330] PHP Warning:  Undefined array key "nodes" in
> /var/www/html/opensips-cp/config/boxes.load.php on line 50, referer:
> http://10.0.0.200/cp/menu.php
> [Wed Dec 14 21:49:52.209821 2022] [php:warn] [pid 32859] [client
> 10.0.0.34:57330] PHP Warning:  Undefined array key "nodes" in
> /var/www/html/opensips-cp/config/boxes.load.php on line 50, referer:
> http://10.0.0.200/cp/menu.php
> [Wed Dec 14 21:49:52.209920 2022] [php:error] [pid 32859] [client
> 10.0.0.34:57330] PHP Fatal error:  Uncaught Error: Attempt to assign
> property "addresses" on null in
> /var/www/html/opensips-cp/config/tools/system/addresses/settings.inc.php:24\nStack
> trace:\n#0 /var/www/html/opensips-cp/web/common/cfg_comm.php(203):
> require()\n#1 /var/www/html/opensips-cp/web/common/cfg_comm.php(340):
> get_params_from_tool()\n#2
> /var/www/html/opensips-cp/web/common/cfg_comm.php(332):
> session_load_from_tool()\n#3
> /var/www/html/opensips-cp/web/tools/system/addresses/template/header.php(32):
> session_load()\n#4
> /var/www/html/opensips-cp/web/tools/system/addresses/address.php(24):
> require('...')\n#5 {main}\n  thrown in
> /var/www/html/opensips-cp/config/tools/system/addresses/settings.inc.php on
> line 24, referer: http://10.0.0.200/cp/menu.php
>
> Any thoughts or suggestions?
>
> Thanks in advance.
>
> Cheers,
> Nitesh
>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] wss and tls

2022-12-15 Thread nutxase via Users
Hi All

I am trying to get tls working with my letsencrypt cert but i keep getting this 
error

ERROR:tls_openssl:openssl_tls_accept: SSL_ERROR_SYSCALL err=Success(0)
ERROR:tls_openssl:openssl_tls_accept: New TLS connection from :47817 failed 
to accept

Dec 15 16:32:54 [localhost] /usr/sbin/opensips[4373]: 
ERROR:proto_wss:wss_read_req: cannot fix read connection

my config is as follows
loadmodule "tls_openssl.so"

modparam("tls_mgm", "server_domain", "sip")
modparam("tls_mgm", "ca_list", "[sip]/etc/letsencrypt/fullchain.pem")
modparam("tls_mgm", "certificate", "[sip]/etc/opensips/tls/cert.pem")
modparam("tls_mgm", "private_key", "[sip]/etc/opensips/tls/ckey.pem")
modparam("tls_mgm", "require_cert", "[sip]0")
modparam("tls_mgm", "tls_method", "[sip]TLSv1")
modparam("tls_mgm", "verify_cert", "[sip]0")
modparam("tls_mgm", "match_sip_domain", "[sip]*")
modparam("tls_mgm", "match_ip_address", "[sip]*")

modparam("tls_mgm", "client_domain", "sip1")
modparam("tls_mgm", "ca_list", "[sip1]/etc/letsencrypt/fullchain.pem")
modparam("tls_mgm", "certificate", "[sip1]/etc/opensips/tls/cert.pem")
modparam("tls_mgm", "private_key", "[sip1]/etc/opensips/tls/ckey.pem")
modparam("tls_mgm", "require_cert", "[sip1]0")
modparam("tls_mgm", "tls_method", "[sip1]TLSv1")
modparam("tls_mgm", "verify_cert", "[sip1]0")
modparam("tls_mgm", "match_sip_domain", "[sip]*")
modparam("tls_mgm", "match_ip_address", "[sip]*")

loadmodule "proto_wss.so"
modparam("proto_wss", "require_origin", no)
loadmodule "proto_ws.so"
modparam("proto_ws", "require_origin", no)

i have tried wolfssl aswell
any ideas :(

Sent with [Proton Mail](https://proton.me/) secure email.___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users