forked from binerry/RaspberryPi
-
Notifications
You must be signed in to change notification settings - Fork 22
/
sipserv.cfg
81 lines (66 loc) · 1.68 KB
/
sipserv.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# SIP account data
sd=fritz.box
su=620
sp=password
# tts language
ln=de
# enable call recording
rc=1
# enable intro by wav
af=ansage.wav
# intro message
#tts=Hello, this is raspberry pi and this are your options:
tts=Hallo, hier spricht Raspberry Pi und dies sind Ihre Oprionen:.
# command to check if the call should be taken -
# the wildcard # will be replaced with the calling phone number
# should return a "1" as first char, if yes.
cmd=./numcheck.py "#"
# do sth after recording, will be called with two parameters appended.
# $1 = telephone number $2 = recorded file name
am=./mail.sh
# dtmf configuration
dtmf.1.active=1
dtmf.1.description=Get average load
dtmf.1.tts-intro=Drücke 1 um die mittlere last in den letzten 5 Minuten zu hören.
dtmf.1.tts-answer=Die Mittlere Last war %s.
dtmf.1.cmd=uptime |awk -F'average: ' '{print $2}' |awk -F', ' '{print $2}'
dtmf.2.active=1
dtmf.2.description=Get free memory
dtmf.2.tts-intro=Drücke 2 um den freien Speicher zu hören.
dtmf.2.tts-answer=Der freie Speicher ist %s Megabeit.
dtmf.2.cmd=free |awk '/^Mem:/{print ($2/1024)}'
dtmf.3.active=0
dtmf.3.description=
dtmf.3.tts-intro=
dtmf.3.tts-answer=
dtmf.3.cmd=
dtmf.4.active=0
dtmf.4.description=
dtmf.4.tts-intro=
dtmf.4.tts-answer=
dtmf.4.cmd=
dtmf.5.active=0
dtmf.5.description=
dtmf.5.tts-intro=
dtmf.5.tts-answer=
dtmf.5.cmd=
dtmf.6.active=0
dtmf.6.description=
dtmf.6.tts-intro=
dtmf.6.tts-answer=
dtmf.6.cmd=
dtmf.7.active=0
dtmf.7.description=
dtmf.7.tts-intro=
dtmf.7.tts-answer=
dtmf.7.cmd=
dtmf.8.active=0
dtmf.8.description=
dtmf.8.tts-intro=
dtmf.8.tts-answer=
dtmf.8.cmd=
dtmf.9.active=0
dtmf.9.description=
dtmf.9.tts-intro=
dtmf.9.tts-answer=
dtmf.9.cmd=