-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsecrets_template.nix
60 lines (51 loc) · 2.61 KB
/
secrets_template.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
# Names of usb devices to connect to access the GSM modem songle. The data
# device should typically be a usb2com compatible device.
dongle_device_data="/dev/ttyUSB0";
dongle_device_audio="/dev/ttyUSB1";
telegram_app_title="Myapp";
telegram_api_id=9999999;
telegram_api_hash="00000000000000000000000000000000";
telegram_bot_token="1111111111:22222222222222222222222222222222222";
# A phone number to pass to Telethon API library.
telegram_phone="+79158888888";
# Telegram chat identifier (typically - a long negative integer) to wich to
# send SMS messages with information and voice records. The chat should be
# available to the Telethon bot. A list of avaialbe chat identifiers is
# printed at some point during the startup of the system.
telegram_chat_id="-1111111111111";
# Telegram Nicname to redirect voicecalls to. Used to create `tg2sip` calling
# address
telegram_master_nicname="realuser";
# Name of a session file used by Telethon library to store the credentials of
# a user between runs. Telethon will require you to pass SMS verification
# if it couldn't find this file. One may typically leave the name as-is.
telegram_session="./telegram.session";
tg2sip_api_id=throw "Specify your Telegram api_id for tg2sip as a number";
tg2sip_api_hash= throw "Specify your Telegram API_HASH for tg2sip as a string";
# IP address to listed from the TG2sip side. Should be visible from the
# `asterisk_bind_ip`.
# 127.0.0.1 doesn't work due to a bug in tg2sip
tg2sip_bind_ip="192.168.1.36";
# Path for SMS forwarding queue from Asterisk to Telegram
dongleman_spool="/tmp/dongleman/spool";
# IP address to listed from the Asterisk side. Should be visible from the
# `tg2sip_bind_ip`.
asterisk_bind_ip="192.168.1.36";
# We enable ARI API of the Asterisk. ARI clients connect to Asterisk using the
# restful HTTP requiests. Both Asterisk and its clients need to know the user,
# the password, and the application name to start talking.
asterisk_ari_user="asterisk";
asterisk_ari_password="asterisk";
asterisk_ari_app="dongleman-ari-app";
# Select sound files to be used in place of Lenny. The default (the only one
# which is shipped) is the Lenny himself
sound_files = avail : avail.lenny-sound-files;
# IP address to expect the softphone app will listen to
softphone_bind_ip="192.168.1.36";
# How to handle incoming GSM voice calls:
# * `tg2sip` - Pass the call `telegram_master_nicname` via `tg2sip` bridge
# (broken due to https://github.com/Infactum/tg2sip/issues/63).
# * `sip` - Pass the call to the `softphone` SIP endpoint.
incoming_call_handler = "sip";
}