Setting up Codecs for Telegram- calls

When setting up SIP accounts from some telecom operators or registering with a PBX whose settings are not on our list Server templates You may need to manually specify the list of codecs to use and their priority.

Available codecs

Without compression
  • alaw
  • alaw/16000
  • mulaw
  • mulaw/16000
  • l16
  • l16/16000
  • l16/32000
  • l16/48000
With compression
  • gsm
  • ilbc20
  • ilbc30
  • amr
  • speex
  • speex/16000
  • speex/32000
  • isac/16000
  • isac/32000
  • gsm-efr
  • opus
  • g722/16000
  • g729
The numbers after / are the sampling rate. If not specified, the standard frequency of 8 kHz is used. The exception is the Opus codec: it operates at 48 kHz.

mulaw - this is the telephony standard for the USA, alaw - for Europe. /16000 are their high quality versions.

opus - a modern high-quality codec that is used in Telegram for calls. Opus is resilient to network losses.

L16 and variations through / - this is a raw codec. L16 is not loss tolerant and requires a good connection quality, so it works best when connected directly to a VATS.

Example of specifying a set of codecs


Values ​​are separated by commas, no spaces, and letter case is not important.

Learn more about using Server Templates

See also

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

Settings and use of the DTMF keyboard when Telegram- calls

Setting up number conversion rules for SIP accounts

Error codes and their interpretation that may occur when setting up a gateway for calls from Telegram

Methods for transferring tariff management to another user, transferring the right to administer the tariff, as well as transferring ownership of the tariff

Request for SIP.TG account management to help users whose categories of users have access to the function

IP telephony operators for different geographical areas, tested by our team

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

The essence of the problem with the tg2sip library (libtgvoip) with Telegram-clients for Android and the proposed solution from SIP.TG