TG2SIP
TG2SIP is a Telegram<->SIP voice gateway. It can be used to forward incoming telegram calls to your SIP PBX or make SIP->Telegram calls.
Requirements
Your SIP PBX should be comaptible with L16@48000
or OPUS@48000
voice codec.
Usage
- Download prebuild version from CI or compile it yourself.
Prebuild binaries have been tested in Ubuntu 18.04 Bionic and requirelibopus0
package installed. - Obtain
api_id
andapi_hash
tokens from this page and put them insettings.ini
file. - Login into telegram with
gen_db
app - Set SIP server settings in
settings.ini
- Run
tg2sip
SIP->Telegram calls can be done using 3 extension types:
tg#[\s\d]+
for calls by username\+[\d]+
for calls by phone number[\d]+
for calls by telegram ID. Only known IDs allowed by telegram API.
Donate
BTC 39wNzvtcyRrTKmq5DjcUfGTixnGVSf8qLg
BCH qqgwg0g96sayht4lzxc89ky7mkdxfyj7jcl5m8qfps
ETH 0x72B8cb476b2c85b1170Ae2cdFB243B17680290b4
ETC 0x9C7d6CD9F9E0584e65f8aD20e1d2Ced947a55207
LTC MFyBRJTnHqXharzH7D3FYeEhAJuywMRfMd