https://bugs.koozali.org/show_bug.cgi?id=12362
Bug ID: 12362
Summary: UCP WebRTC phone requires websocket
Classification: Contribs
Product: SME Contribs
Version: 10.0
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-freepbx
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Target Milestone: ---
In UCP with the WebRTC phone we can see the phone attempting to connect but it
remains disconnected.
The browser reveals continuous failed attempts at creating a websocket.
WebSocket connection to 'ws://127.0.0.1:8088/ws' failed:
First this should point to the actual server, not to localhost. This presumably
requires a FreePBX/Asterisk setting to push the correct URL.
Second it requires a proxy/websocket section in one of the httpd conf files to
reverse the request.
It should also upgrade to a secure wss connection. The browser URL should look
vaguely like this:
ws://asterisk.mysite.info/ws
The httpd conf should have something similar to this
<IfModule mod_proxy_wstunnel.c>
ProxyPass /ws ws://localhost:8088/ws
</IfModule>
Or something similar from here:
https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html
ProxyPass / http://example.com:9080/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://example.com:9080/$1" [P,L]
Tried a bit of minor fiddling & testing but waaaay beyond my skill level now.
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/