Discussion:
[Freeswitch-users] Using FreeSWITCH as a STUN server
Oleg Stolyar
2014-03-20 18:09:19 UTC
Permalink
Hi guys,

WebRTC requires STUN servers to get the external IP address for ICE
candidates.

I would prefer not to rely on external STUN servers (google, etc) in my
production environment. Ideally I'd prefer to use the FreeSWITCH server I
need to connect to as my STUN server.

Is this possible? Can FS act as a STUN server?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140320/ae8224b6/attachment.html
Michael Jerris
2014-03-20 18:14:10 UTC
Permalink
Freeswitch can not act as a stun server, but there are a number of open source stun servers available that you can use. There is no reason for us to recreate the wheel when they already exist.

Mike
Post by Oleg Stolyar
Hi guys,
WebRTC requires STUN servers to get the external IP address for ICE candidates.
I would prefer not to rely on external STUN servers (google, etc) in my production environment. Ideally I'd prefer to use the FreeSWITCH server I need to connect to as my STUN server.
Is this possible? Can FS act as a STUN server?
Oleg Stolyar
2014-03-20 18:28:51 UTC
Permalink
Hi Mike,

One reason could be to deal with symmetric NAT. However, it's not very
common, so I definitely see your point.
Post by Michael Jerris
Freeswitch can not act as a stun server, but there are a number of open
source stun servers available that you can use. There is no reason for us
to recreate the wheel when they already exist.
Mike
Post by Oleg Stolyar
Hi guys,
WebRTC requires STUN servers to get the external IP address for ICE
candidates.
Post by Oleg Stolyar
I would prefer not to rely on external STUN servers (google, etc) in my
production environment. Ideally I'd prefer to use the FreeSWITCH server I
need to connect to as my STUN server.
Post by Oleg Stolyar
Is this possible? Can FS act as a STUN server?
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140320/e2fb57ec/attachment.html
Normando Hall
2014-03-20 18:31:52 UTC
Permalink
Right. Anyway I think you need TURN server for webrtc. I don't know if
webrtc run with stun only

Take a look at:

http://blog.schertz.name/2012/10/lync-edge-stun-turn/
http://www.html5rocks.com/en/tutorials/webrtc/infrastructure/
https://www.webrtc-experiment.com/docs/STUN-or-TURN.html

Normando
Post by Michael Jerris
Freeswitch can not act as a stun server, but there are a number of open source stun servers available that you can use. There is no reason for us to recreate the wheel when they already exist.
Mike
Post by Oleg Stolyar
Hi guys,
WebRTC requires STUN servers to get the external IP address for ICE candidates.
I would prefer not to rely on external STUN servers (google, etc) in my production environment. Ideally I'd prefer to use the FreeSWITCH server I need to connect to as my STUN server.
Is this possible? Can FS act as a STUN server?
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Oleg Stolyar
2014-03-20 18:46:58 UTC
Permalink
It does. I have a prototype with JsSIP and FS (FS with a public IP) that
works with just STUN servers.
Post by Normando Hall
Right. Anyway I think you need TURN server for webrtc. I don't know if
webrtc run with stun only
http://blog.schertz.name/2012/10/lync-edge-stun-turn/
http://www.html5rocks.com/en/tutorials/webrtc/infrastructure/
https://www.webrtc-experiment.com/docs/STUN-or-TURN.html
Normando
Post by Michael Jerris
Freeswitch can not act as a stun server, but there are a number of open
source stun servers available that you can use. There is no reason for us
to recreate the wheel when they already exist.
Post by Michael Jerris
Mike
Post by Oleg Stolyar
Hi guys,
WebRTC requires STUN servers to get the external IP address for ICE
candidates.
Post by Michael Jerris
Post by Oleg Stolyar
I would prefer not to rely on external STUN servers (google, etc) in my
production environment. Ideally I'd prefer to use the FreeSWITCH server I
need to connect to as my STUN server.
Post by Michael Jerris
Post by Oleg Stolyar
Is this possible? Can FS act as a STUN server?
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140320/3aecb294/attachment-0001.html
Loading...