How to configure asterisk http to both IPv4 and IPv6?

Hi All,
I am new to Asterisk & I want asterisk’s to be configured on IPv4 and IPv6, both with SSL. If I add multiple bindaddr in http.conf the last bindaddr value is picked. Please suggest how I can configure HTTP on IPv4 as well as IPv6.

[general]
enabled=no
bindaddr=0.0.0.0
bindaddr=[::]
bindport=8089
tlsenable=yes
tlscertfile=/certs/new/certs/asteriskPBX.crt
tlsprivatekey=/certs/new/certs/asteriskPBX.key
enablestatic=yes
sessionlimit=1000
redirect=/ /static/index.html

With the above configuration, an Asterisk configures HTTP only on IPv6.

Thanks in advance.

The HTTP server supports only a single bind address. Binding to “[::]” will bind to IPv4 and IPv6. It will appear as though it is listening on IPv6 only in netstat, but should allow IPv4 as well.

Thank you very much Jcolp, appreciate your reply. I have tested it & it is working with both IP v6 and v4.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.