Socket Web WERTP

Asterisk 20.11
I have this configuration in the pjsip.conf file

[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0:8089
method=tlsv1_2
allow_reload=yes
symmetric_transport=yes
cert_file=/etc/asterisk/keys/asterisk.pem
priv_key_file=/etc/asterisk/keys/asterisk.key

I don’t think SSL is necessary, since another Asterisk that is in Rocky Linux is working without the certificate and with the same configuration.

callcenter*CLI> pjsip show transports

Transport: <TransportId…> <BindAddress…>

Transport: transport-udp-nat udp 0 0 0.0.0.0:5060
Transport: transport-wss wss 0 0 0.0.0.0:8089

Objects found: 2

When I run Nmap on localhost or from another IP, ports 5060 and 8089 don’t appear to be listening, and when I try to connect to the socket used by Postmas, they don’t appear to be listening either.

I’ve rebooted and changed the configuration many times, and nothing I do exposes those ports. I modified the http.conf, cdr.conf, and pjsip.conf files.

What can I do or how can I start over, because I feel like I’ve reached a dead end?

Where did you come up with that configuration?

The HTTP webserver, which is used by PJSIP, is configured in http.conf - you can’t merely configure it in pjsip.conf and have it work.

Additionally if there are errors listening they will appear in Asterisk at startup.

Gracias por la respuesta me fue de mucha ayuda, efectivamente en http.conf se configura el websocket y en pjsip se define el transporte para las extensiones.