An alternative to the tg2sip library (libtgvoip)

The essence of the problem

The open-source tg2sip library is well known to many VoIP developers; it is based on the use of the OPUS codec on the receiving side through the libtgvoip library.

However, voice calls to Telegram now use the more modern WebRTC protocol through the tgcalls library and for this reason support for the libtgvoip library in various Telegram-clients is gradually being phased out.

For example, at the moment (June 2022) support for libtgvoip in official Telegram-apps for Android, and most likely soon support may end for other platforms (for example iOS, Windows, Mac, Linux).

Patches Telegram for Android that fix the latest issue with libtgvoip support are unlikely to continue to work for much longer as they do not meet the new call quality criteria Telegram and constantly require resources to support and test them.

Proposed solution and advantages of SIP.TG

The SIP.TG software solution is not tied to the tg2sip library and is based on the tgcalls library and the WebRTC protocol, which are now used Telegram across all of its clients and server infrastructure.

But in addition to using a modern technology stack, the Gateway solution for receiving and making calls from a single Telegram-account from SIP.TG has a number of other important advantages.

Possibility of scaling the infrastructure of Worker servers

Availability of a convenient bot interface for configuring and connecting the gateway

Flexible configuration of used codecs for connection with PBX

The presence of a Softphone mode, which can perfectly complement a solution with a Gateway

Availability of operational support service and full-time developers developing the SIP.TG solution
If you need to transfer your service based on the tg2sip library to the SIP.TG platform, please contact support.

Our specialists are ready to provide advice on how to optimally carry out the transfer and what other advantages and additional opportunities appear when using the solution from SIP.TG.

See also


How to set up Gateway mode to receive and make calls through a single Telegram-company account

What do users see when calling a single Telegram-account via SIP.TG, a set of functions available for them (DTMF, Auto Answer, Line selection, Call Back button, specifying an extension number and calling via Callback)

Limitations and specifics of making voice calls in Telegram via SIP.TG Gateway

How to receive voice calls from Telegram, integration and connection of the Gateway

Features of integration of the SIP.TG Gateway for Telegram- calls with CRM systems, receiving incoming and making outgoing calls Telegram- users via PBX

Payment methods for the SIP.TG gateway for transferring calls between Telegram and SIP telephony

Frequent problems and solutions when setting up a gateway for calls between Telegram and SIP telephony

Purpose, advantages, procedure for installing and configuring your own Worker servers for SIP.TG

Purpose, advantages, procedure for installing and configuring your own Session Storage Telegram for SIP.TG

Allows you to receive and make parallel calls through a single Telegram-company account. Integration with office or cloud SIP-PBX.