-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmsgwd.cfg
59 lines (51 loc) · 1.62 KB
/
smsgwd.cfg
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
[socketCfg]
# Empty string => Any host
# Field is socket host format, e.g accepting localhost, server name, IP
# Special: If gethostname() then it is replaced by output from python socket.gethostname()
host =
port = 2525
[GWs]
# List of active SMS GWs, NoSmsGw is a special GW actually not sending any SMS's
active = ["NoSmsGw", "MySim"]
# The cheapest active GW (except NoSmsGw)
cheap = MySim
# Defualt active GW to use
default = %(cheap)s
# Supported types for SMS GWs:
# - NoSmsGw (No SMS's are sent)
# - Needed parameters: None
# - gsmmodem (Sending via gsmmodem from https://github.com/faucamp/python-gsmmodem/)
# - Needed parameters:
# - tty, e.g. tty=/dev/ttyUSB0
# - baud, baudrate, e.g. 115200
# - pin, either 4 digit pin or None
# - GetDeliveryReport=True or False
# - smsit.dk
# - Needed parameters:
# - key=abcdef1234
# - default_from = SmsGW (Only used if no from is speicified by smsgw client)
# - eu.apksoft.android.smsgateway
# See https://play.google.com/store/apps/details?id=eu.apksoft.android.smsgateway
# - Needed parameters:
# - key=<password> (not tested without)
[smsgw-NoSmsGw]
type = NoSmsGw
[smsgw-MySim]
type = gsmmodem
tty = /dev/gsmmodemMySim
#baud = 115200
baud = 9600
# Set pin to number or None if no pincode
pin = 1234
# Can be overrided by client via flag GetDeliveryReport
GetDeliveryReport = True
[smsgw-smsit.dk]
type = smsit.dk
key = y0urKeyFromSmsit
url = dummy
# default_from is the sender of the message, used if client don't specify From
default_from = SmsGW
[smsgw-app]
type = eu.apksoft.android.smsgateway
url = http://192.168.0.2:9090/sendsms
key = AppPassword