This commit is contained in:
infactum 2018-10-04 13:46:25 +05:00
parent e58dd45f1c
commit 6ab778443a
5 changed files with 9 additions and 6 deletions

0
CMakeLists.txt Executable file → Normal file
View File

0
Dockerfile Executable file → Normal file
View File

View File

@ -1,3 +1,5 @@
[![Build status](https://ci.appveyor.com/api/projects/status/4dnph34apvfy6vft?svg=true)](https://ci.appveyor.com/project/Infactum/tg2sip)
# 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.
@ -8,7 +10,7 @@ Your SIP PBX should be comaptible with `L16@48000` or `OPUS@48000` voice codec.
## Usage
1. Download prebuild version from CI or compile it yourself.
1. [Download](https://ci.appveyor.com/api/projects/Infactum/tg2sip/artifacts/tg2sip.zip?branch=master) prebuild version from CI or compile it yourself.
2. Obtain `api_id` and `api_hash` tokens from [this](https://my.telegram.org) page and put them in `settings.ini` file.
3. Login into telegram with `gen_db` app
4. Set SIP server settings in `settings.ini`

View File

@ -25,15 +25,16 @@ install:
build_script:
- sh: >-
mkdir build;
docker run --rm -v $(pwd):/src $DOCKER_IMAGE /bin/bash -c "
mkdir build && cd build;
cmake -DCMAKE_BUILD_TYPE=Release /src;
cmake --build .;
cp tg2sip /src;
cp gen_db /src;"
chmod +x tg2sip;
chmod +x gen_db;
7z a tg2sip.zip tg2sip gen_db settings.ini
chmod +x tg2sip;
chmod +x gen_db;
cp tg2sip /src/build;
cp gen_db /src/build;"
7z a tg2sip.zip build/tg2sip build/gen_db settings.ini;
after_build:
- sh: docker push $DOCKER_IMAGE

0
settings.ini Executable file → Normal file
View File