Go to file
infactum b76fd4bf41 singal handler bug fix 2019-02-08 18:29:45 +05:00
buildenv CI update 2019-02-08 18:08:59 +05:00
include public release 2018-10-04 12:07:36 +05:00
libtgvoip Merge commit 'c76b0a3f0c5019a3db268217ca13a01435f21e2b' into as 'libtgvoip' 2019-02-08 18:10:28 +05:00
tg2sip singal handler bug fix 2019-02-08 18:29:45 +05:00
CMakeLists.txt build script update 2019-02-08 17:57:13 +05:00
COPYING public release 2018-10-04 12:07:36 +05:00
README.md url fix 2018-11-21 23:05:37 +05:00
appveyor.yml CI update 2019-02-08 18:08:59 +05:00
settings.ini settings update 2019-02-08 17:58:26 +05:00

README.md

Build status

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

  1. Download prebuild versions for supported OS from CI or compile it yourself.
    Ubuntu 18.04 Bionic
    CentOS 7
    Prebuild binaries requires OPUS libraries (libopus0 for Ubuntu, opus for CentOS, etc).
  2. Obtain api_id and api_hash tokens from this page and put them in settings.ini file.
  3. Login into telegram with gen_db app
  4. Set SIP server settings in settings.ini
  5. Run tg2sip

SIP->Telegram calls can be done using 3 extension types:

  1. tg#[\s\d]+ for calls by username
  2. \+[\d]+ for calls by phone number
  3. [\d]+ for calls by telegram ID. Only known IDs allowed by telegram API.

Donate

paypal

Yandex.Money

BTC 39wNzvtcyRrTKmq5DjcUfGTixnGVSf8qLg
BCH qqgwg0g96sayht4lzxc89ky7mkdxfyj7jcl5m8qfps
ETH 0x72B8cb476b2c85b1170Ae2cdFB243B17680290b4
ETC 0x9C7d6CD9F9E0584e65f8aD20e1d2Ced947a55207
LTC MFyBRJTnHqXharzH7D3FYeEhAJuywMRfMd