This commit is contained in:
parent
e58dd45f1c
commit
6ab778443a
|
@ -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
|
||||||
|
|
||||||
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.
|
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
|
## 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.
|
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
|
3. Login into telegram with `gen_db` app
|
||||||
4. Set SIP server settings in `settings.ini`
|
4. Set SIP server settings in `settings.ini`
|
||||||
|
|
|
@ -25,15 +25,16 @@ install:
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- sh: >-
|
- sh: >-
|
||||||
|
mkdir build;
|
||||||
docker run --rm -v $(pwd):/src $DOCKER_IMAGE /bin/bash -c "
|
docker run --rm -v $(pwd):/src $DOCKER_IMAGE /bin/bash -c "
|
||||||
mkdir build && cd build;
|
mkdir build && cd build;
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release /src;
|
cmake -DCMAKE_BUILD_TYPE=Release /src;
|
||||||
cmake --build .;
|
cmake --build .;
|
||||||
cp tg2sip /src;
|
|
||||||
cp gen_db /src;"
|
|
||||||
chmod +x tg2sip;
|
chmod +x tg2sip;
|
||||||
chmod +x gen_db;
|
chmod +x gen_db;
|
||||||
7z a tg2sip.zip tg2sip gen_db settings.ini
|
cp tg2sip /src/build;
|
||||||
|
cp gen_db /src/build;"
|
||||||
|
7z a tg2sip.zip build/tg2sip build/gen_db settings.ini;
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
- sh: docker push $DOCKER_IMAGE
|
- sh: docker push $DOCKER_IMAGE
|
||||||
|
|
Loading…
Reference in New Issue