/[projects]/smsdaemon/smsdaemon.conf
ViewVC logotype

Annotation of /smsdaemon/smsdaemon.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 217 - (hide annotations) (download)
Tue Dec 23 14:20:43 2008 UTC (15 years, 4 months ago) by torben
File size: 2178 byte(s)
Solved ToDo item:
'- Create a filtering method:
-  Incoming: which phonenumbers are allowed to invoke which plugins
-  Incoming could be solved with a PluginProxy() which intercepts the ExecutePlugin calls (only 
PluginManager needs to know about this one)'

Move the Access related items to AccessManager.*


1 torben 147 [smsdaemon]
2    
3     # Option transceiver
4     # which transceiver should be used:
5     # possible values:
6     # * internal
7     # * smstools
8     # * debug
9 torben 152 transceiver = smstools
10 torben 147
11    
12 torben 152 #Which user / group should the daemon run as
13     #
14     user = smsd
15     group = smsd
16 torben 168
17    
18 torben 175 # Where should logmessages go
19     # options:
20     # logfile : logs to /var/log/smsdaemon.log)
21     # syslog : use the system logger
22     log = logfile
23 torben 168
24 torben 205 # Option plugin
25     # Specify which plugin(s) should be loaded
26     # Several plugin statements are allowed
27     # syntax
28     # plugin = <pluginname> [arguments]
29 torben 217 # General arguments
30     # privileged - if this is set to 1(one) only the phones in the privileged list are allowed
31     # to invoke the plugin
32 torben 205 plugin = echo
33 torben 217 plugin = spam privileged=1
34 torben 205 plugin = status
35     plugin = hoststatus
36     plugin = tog
37     plugin = weather
38     plugin = list
39     plugin = urltrigger trigger=tou; url=http://t-hoerup.dk/test.php
40     plugin = shellexec trigger=wake; cmd=/usr/local/bin/wake; allowparms=0; returnoutput=0
41     plugin = shellexec trigger=ping; cmd=nmap -sP 192.168.10.1-255 | grep appears | awk '{print $2}'; allowparms=0; returnoutput=1
42 torben 215 plugin = shellexec trigger=fortune; cmd=/usr/games/fortune -s -n 300 ; allowparms=0; returnoutput=1
43 torben 175
44 torben 215
45 torben 207 # Option task
46     # Specify which tasks should be loaded
47     task = spool
48 torben 175
49 torben 205
50 torben 211 # Enforce Country Code
51     # if this is set, all outgoing messages must go to phone numbers
52     # starting with this
53     countrycode = 45
54    
55 torben 216 # Option blacklist
56     # A comma seperated list of phone numbers that should be ignored
57     # regarding both incomming and outgoing messages
58     # Note: it is a good idea to put the servers own phonenumber in this list
59     blacklist = 4542407617,
60    
61     # Option privileged
62     # A comma seperated list of privileged phonenumbers
63     privileged = 4522337617
64    
65    
66 torben 168 #config section for internal gsm modem transceiver
67     [gsmmodem]
68    
69     # Option serialport
70     # Specifies which serial port the modem is attached to
71     serialport = /dev/ttyUSB0
72    
73    
74 torben 171 # Option pin
75     # PIN code for the SIM card
76 torben 205 pin = 0067
77 torben 168
78 torben 171
79 torben 205
80 torben 168 #this is the config section if the smstools transceiver is chosen
81     [smstools]
82    
83     # Option inboxdir
84     # where should the files be read from
85     inboxdir = /var/spool/sms/inbox
86    
87     # Option outgoingdir
88     # where should the outgoing messages be written
89     outgoingdir = /var/spool/sms/outgoing

  ViewVC Help
Powered by ViewVC 1.1.20