Connecting WebRTC to Asterisk via WSS

pleas anyone successful connected to asterisk over wss post his config file and require package i am googling a week ago and nothing useful finally i got

Hello

I also have a problem with registration over WSS on Asterisk. I build Asterisk 12 with pjproject and registration over WS is working without problem. But using WSS i can’t register a user. I’m using JsSIP WebRTC client.

My config:

sip.conf

[general]
context=default
allowguest=yes
udpbindaddr=0.0.0.0:5060
realm=10.10.1.10
transport=wss,ws,udp
srvlookup=yes
language=en
icesupport=yes

http.conf

[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
tlsenable=yes         
tlsbindaddr=0.0.0.0:8089   
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlsprivatekey=/etc/asterisk/keys/asterisk.key
;tlscafile=/etc/asterisk/keys/ca.crt
;tlscipher=ALL
;tlsclientmethod=tlsv1

users.conf

[1000]
type=friend
username=1000
host=dynamic
secret=1234
context=default
hasiax=no
hassip=yes
encryption=yes
avpf=yes
icesupport=yes
videosupport=yes
directmedia=no
disallow=all
allow=alaw,ulaw,vp8
nat=force_rport,comedia

Directory /etc/asterisk/keys contains generated certificates

1000.crt  1000.key  asterisk.crt  asterisk.key  ca.cfg  ca.key
1000.csr  1000.pem  asterisk.csr  asterisk.pem  ca.crt  tmp.cfg

I followed instructions on this page (link). After I successfully generated certificates I copy 1000.pem and ca.crt to my personal computer and import them to Chrome browser. Import was successful.
Then I insert the following URL: 10.10.1.10/jssip, accept exception about unverified certificate, and enter user’s login information:

name: 1000 sip uri: 1000@10.10.1.10 pass: 1234 ws uri: wss://10.10.1.10:8089/ws

Login fails and I get the following warning in Asterisk CLI:

I also tried with modified sip.conf, where I uncomment the remaining lines (tlscafile, tlscipher, tlsclientmethod) and also tried with Firefox browser, but without success.

Can someone help me with my problem?

Thank You,
Blaz

Does anyone know the solution to my problem…?

Regards,
Blaz

Did u find a solution for this problem?

I’m having the same issue whenever I try to connect using wss:10.0.0.01:8089/ws