I am trying to use WebSockets on
FreePBX-3.211.63-3.
All guidelines found on the internet so far are talking about enabling it in the Asterisk Mini-Http server… etc. As it seems FreePBX Distro is using something else as I can not find /etc/http.conf file.
How can I enable WebSockets?
How to enable transport=ws,wss? I could not find it in the Gui.
There is no /etc/asterisk/http.conf as well. All I have is /etc/httpd/* But Files in here does look like typical Apache config files.
Anyway, I found something similar in manager.conf but I am missing there the bind=8088. Not sure if that’s the place where to add it. I will certainly try.
Than I executed those two commands from the CLI:
pbx*CLI> manager show settings
Global Settings:
Manager (AMI): Yes
Web Manager (AMI/HTTP): No
TCP Bindaddress: 0.0.0.0:5038
HTTP Timeout (minutes): 60
TLS Enable: No
TLS Bindaddress: Disabled
TLS Certfile: asterisk.pem
TLS Privatekey:
TLS Cipher:
Allow multiple login: Yes
Display connects: No
Timestamp events: No
Channel vars:
Debug: No
Block sockets: No
pbx*CLI> http show status
HTTP Server Status:
Prefix:
Server Disabled
Enabled URI’s:
/httpstatus => Asterisk HTTP General Status
/phoneprov/… => Asterisk HTTP Phone Provisioning Tool
/static/… => Asterisk HTTP Static Delivery
/ws => Asterisk HTTP WebSocket
Enabled Redirects:
None.
after I succeeded with WS, the next challenge was waiting just behind the corner. There is no SRTP support in this version. That’s a shame. Now I am stuck again.