Wiki -VoIP Topics

WebRTC Gateway Tutorial

MRTC WebRTC-SIP Gateway -Quick Start Guide

The Mizu WebRTC-SIP Gateway (MRTC) is a full stack protocol converter between WebRTC and SIP, including all the modules needed for optimal signaling and media conversion (ICE, TURN and STUN are built-in). Using this software you can initiate and receive calls with WebRTC clients (usually running in browsers) via your existing SIP server.

MRTC can be installed on any Windows OS and it runs as a Windows service (NT service).

You should install it on a Server or PC close to your existing SIP server (Softswitch or IP-PBX). It can be run also from a virtual machine.

For up to 100 simultaneous calls any PC is fine which can barely run Windows, such as a dual core Xeon with 4 GB RAM and 30 GB free disk space. See the requirements if you have more traffic.

Follow these steps to get started:

1. Download the MRTC installer from here (this is the free version for up to 20 users and 5 simultaneous calls)

3.2. Take care of the “Bind IP” and “Public IP” settings if your server has multiple networks or you are behind NAT

3.3. Set a domain name and select the “Auto SSL” checkbox if you need secure websocket (WSS). WebRTC clients from Chrome browsers will not work if you don’t host your webpage on HTTPS or you MRTC gateway don’t use WSS.

3.4. If your gateway is behind NAT, auto SSL will work only if you forward ports 80 and 443 on your router from the internet (These ports are required to acquire a “Let’s Encrypt” certificate).

3.5. If you haven’t set a domain or SSL, then you can still use Firefox to run your WebRTC client as this browser doesn’t require HTTPS/WSS.

3.6. Make sure that the ports used by the gateway (SIP port, Access port, Secure port) are not used by some other application such as a local web server (in this case either change the MRTC ports or the third party app port or bind them to separate IP address)

3.7. Set the upper server to your existing SIP server address (also set the :port if your server is not using the standard 5060 UDP port)

3.8. Click “Next” and “Apply” to save the settings

4. Note:

4.1. You don’t need to change any settings on your existing SIP server

4.2. You don’t need to manage users/extensions on the Gateway (manage them on your SIP server as you did it before)

4.3. The gateway can be also used with more than one SIP server. See the Guide if you wish to use one gateway with multiple SIP servers.

4.4. There is no any maintenance required by the MRTC gateway. Once configured properly and started, it will run forever without the need for any maintenance work as it will self-manage itself (including deleting old logs and auto-adapting to environment and network conditions)

5. Start the gateway service if not already started. This can be done from:

6. Configure your WebRTC client:
To find out how to configure your WebRTC client, go to “Help” menu -> “How to connect?”.
This will display clear and easy to follow instructions about how exactly you will have to configure your WebRTC client.

Note:
-Calls to outbound/PSTN/carrier will be handled in the exact same way as the above WebRTC->SIP call
-You can also make WebRTC to WebRTC calls (both endpoint running from browsers with SIP credentials valid on your softswitch/IP-PBX)

8. More:

Following the above steps might fulfill most of your needs as the gateway will auto configure and fine-tune all its modules for optimal WebRTC-SIP protocol conversion out of the box. However there are a lot more you can do with the gateway such as using it with multiple SIP servers, optimize PBX features, run health analysis, export CDR records, handle special NAT requirements or optimize (avoid) codec transcoding.