📜 ⬆️ ⬇️

The real use of WebRTC in IP telephony services

On Habré, WebRTC (Web Real-Time Communications) technology has already been reported. The WebRTC standard, which is currently still in draft form, is predicted to have a great future, and in the future development of the Internet and web technologies it is quite ready to repeat the path of Skype.
WebRTC can be used to create a fundamentally new category of web applications that can work with voice and video traffic without using third-party technologies and programs using only HTML5 and JavaScript, which will greatly facilitate the development of applications by developers.

The technology is truly cross-platform, independent of the operating system you are using, you only need WebRTC support in your browser. Now it is supported by the popular Google Crome browser without any additional settings and plug-in settings on all desktop operating systems, such as Windows, Linux, Mac OS X and others. Also, due to the fact that for web calls, and in particular, to establish a SIP connection, you need transport in the form of html5 of the WebSocket technology, WebRTC can work on almost all other browsers under Windows (Safari, FireFox, IE, Opera ) by installing the optional webrtc4all extension.

The first service that launched calls from a web browser into commercial operation was Callbacker , which integrated a web phone into its personal account based on the open source product sipml5 .

What was done:

In the Asterisk configuration files:
')
http.conf:
enabled=yes bindaddr=0.0.0.0 bindport=8088 

sip.conf:
 udpbindaddr=0.0.0.0:5060 realm=mydomain.com domainsasrealm=mydomain.com videosupport=no directmedia=no avpf=yes ;    -,  AVPF-  - encryption=yes ; SRTP transport=udp,ws,wss ;ws  wss -   WebSocket 

In fact, the user's encryption flag can be set as encryption = no, otherwise, other softphones or VoIP devices will also need to work with encryption, which is not always supported and may be inconvenient.

In order to try how it all works, you must have a login and password for one of the Callbacker programs for iOS or Android, or you can register again and test the connection. Here is a personal account in which there is the same web phone. Currently, the Callbacker project is developing, overgrown with new features. It is encouraging that the latest promising technologies, including those in the field of Internet telephony, do not die on the disks of SVN hosters, but find practical application.

Source: https://habr.com/ru/post/158543/


All Articles