WebSocket

Hi,

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.

Thanks. Any help much appreciated.

Regards,
K.K.

Check for: /etc/asterisk/http.conf
You will prob also have to edit: /etc/asterisk/manager.conf as well.

Confirm web sockets are running at the Asterisk CLI:

[code]pbx*CLI> manager show settings
Global Settings:

Manager (AMI): Yes
Web Manager (AMI/HTTP): Yes[/code]

pbx*CLI> http show status HTTP Server Status: Prefix: /asterisk Server Enabled and Bound to 10.41.2.2:8088

Hi,

thanks for the quick reply.

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.

Hi,

success.

Creating /etc/asterisk/http.conf has enabled the Build in mini-HTTP server.

Now I have:

pbx*CLI> http show status
HTTP Server Status:
Prefix: /asterisk
Server Enabled and Bound to 127.0.0.1:8088

Hi,

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.

Can anyone help how to add res_srtp.so module?

Thanks.

K.K.