Sip-trip-phone with nextcloud 24.0.1

i’m trying to integrate sip-trip-phone “astrik” but every time it pop-up to the same nextcloud dashboard not to the phone screen! anyone can help?!

{“reqId”:“SXsdjqLMjuxhhyhvEG1k”,“level”:3,“time”:“2022-08-09T09:27:19+00:00”,“remoteAddr”:“154.x.x.x”,“user”:“test”,“app”:“PHP”,“method”:“GET”,“url”:“/index.php/apps/sip_trip_phone/user/getsettings/%3C?php%20p($userId);%20?%3E”,“message”:“Trying to access array offset on value of type bool at /var/www/nextcloud/apps/sip_trip_phone/lib/Service/SphoneService.php#57”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36”,“version”:“24.0.1.1”,“exception”:{“Exception”:“Error”,“Message”:“Trying to access array offset on value of type bool at /var/www/nextcloud/apps/sip_trip_phone/lib/Service/SphoneService.php#57”,“Code”:0,“Trace”:[{“file”:“/var/www/x.taqnya.cloud/apps/sip_trip_phone/lib/Service/SphoneService.php”,“line”:57,“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/apps/sip_trip_phone/lib/Controller/SphoneController.php”,“line”:50,“function”:“getsettings”,“class”:“OCA\SIPTripPhone\Service\SphoneService”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:225,“function”:“getsettings”,“class”:“OCA\SIPTripPhone\Controller\SphoneController”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:133,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/App.php”,“line”:172,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/Route/Router.php”,“line”:298,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1023,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/var/www/nextcloud/index.php”,“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”},“id”:“62f22c8162099”}

edited with the error i get also i’m using apache reverse proxy do i need to do extra configuration to redirect to Asterisk ??

SIP Trip Phone won’t start correctly unless you configure your web server as specified in the documentation. On the application’s Nextcloud page it is specified: “The web server has to be configured to allow access to a specific directory and to proxy WebSocket traffic to a specific URL, as explained in the ‘Admin documentation’”.

There are multiple web server configurations possible, depending on your situation. Since you mention that you are using Apache and you want to connect SIP Trip Phone to Asterisk, the Apache configuration for Nextcloud served on a subdomain (like ‘cloud.example.com’) or on a subdirectory (like ‘example.com/nextcloud’), with all its apps, including SIP Trip Phone, is here.

Don’t forget to enter the right credentials on the application’s Settings page, as explained in the mentioned documentation. Otherwise, the application won’t start correctly, or it will start but won’t connect to Asterisk. The error that you are showing above, “Trying to access array offset on value of type bool” usually appears in logs when no credentials were entered on the application’s Settings page.