WebRTC over WSS?

Hello all,

The follwing wiki page explains WSS:// is supported in Asterisk 11.4:
wiki.asterisk.org/wiki/display/ … TC+Support

However, I can only get the non secure WS:// to work (and it works great). Whenever I try over WSS:// Asterisk will give me notice of accepting the connection, but the peer never registers, hence why I am here.

Here is my sip.conf –

[code][general]
;nat=yes
externip=XX.XX.XX.XX
localnet=192.168.1.0/255.255.255.0
allowguest=no
alwaysauthreject=yes
;disallow=all
allow=all
tlsenable=yes
tlsbindaddr=0.0.0.0:5061
tlscertfile=/etc/ssl/certs/server.crt
tlscafile=/etc/ssl/certs/bundle.crt
tlsprivatekey=/etc/ssl/private/server.key
tlscipher=ALL
tlsclientmethod=tlsv1
realm=auth

[100]
type=friend
deny=0.0.0.0/0.0.0.0
permit=192.168.1.1/24
permit=10.0.8.0/24
;secret=tester100
md5secret=237c909da7457ceef2aeb61f1d94613b
host=dynamic
context=xyz
dtmfmode=rfc2833
port=5061
transport=tls,udp,wss,ws
encryption=yes
avpf=yes
icesupport=yes
qualify=yes
mailbox=100@xyz
callerid=John Henry <100>
nat=force_rport,comedia[/code]

Here is my http.conf

[general] enabled=yes bindaddr=0.0.0.0 bindport=8088 tlsenable=yes tlsbindaddr=0.0.0.0:8089 tlscertfile=/etc/ssl/certs/server.crt tlscafile=/etc/ssl/certs/bundle.crt tlsprivatekey=/etc/ssl/private/server.key tlscipher=ALL tlsclientmethod=tlsv1

Has anyone successfully connected peers to asterisk over a WSS:// connection?

The certs are from a trusted CA, and I can successfully connect over tls. I am using the sipml5-web-phone for testing. I started a thread over at websipml5 google groups (See here- groups.google.com/forum/?fromgr … iP15eJD4TM) and they seem to think astertisk doesnt support wss? Is this the case?

Any help our guidance would be appreciated.

Thank You,
John

I never tried wss without webrtc2sip gateway so I don’t know if asterisk support it or not, but you may enable the sip debug in order to see the register transaction. As Mamadou said in the doubango’s forum its better to use the gateway.

Thanks navalsmo,

That is all the information debug is giving, I will give the webrtc2sip gateway a try, but I still would like an answer whether asterisk works with WSS on it’s own (as it claims).

That only is a verbose message, you need to enable the sip debug with ‘sip set debug on’ and paste the complete output, if you already did that, then seems like there is no contact to the server.

navalsmo,

Got the webrtc2sip working, and it indeed works without a hitch over WSS, then I use tls as outbound proxy to asterisk( this will satisfy my requirements) though it would be nice to have asterisk as the solve all.

Yes that was with debug on, even though that is a verbose message, does it not indicate the start of a handshake, (it does say it accepts the ws connection)?

Any further ideas anyone?