WebRTC over WSS?

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

WebRTC over WSS?

Postby tilt » Wed Jun 19, 2013 2:16 pm

Hello all,

The follwing wiki page explains WSS:// is supported in Asterisk 11.4:
https://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.

Code: Select all
  == WebSocket connection from '192.168.1.1:43134' for protocol 'sip' accepted using version '13'



Here is my sip.conf --
Code: Select all
[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



Here is my http.conf
Code: Select all
[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- https://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
tilt
Newsterisk
 
Posts: 3
Joined: Wed Jun 19, 2013 2:05 pm

Re: WebRTC over WSS?

Postby navaismo » Wed Jun 19, 2013 3:05 pm

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.
navaismo
Salt of the Asterisk
 
Posts: 1610
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico

Re: WebRTC over WSS?

Postby tilt » Wed Jun 19, 2013 4:02 pm

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).
tilt
Newsterisk
 
Posts: 3
Joined: Wed Jun 19, 2013 2:05 pm

Re: WebRTC over WSS?

Postby navaismo » Wed Jun 19, 2013 4:53 pm

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.
navaismo
Salt of the Asterisk
 
Posts: 1610
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico

Re: WebRTC over WSS?

Postby tilt » Wed Jun 19, 2013 5:33 pm

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?
tilt
Newsterisk
 
Posts: 3
Joined: Wed Jun 19, 2013 2:05 pm


Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest