-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsmsd.conf
More file actions
657 lines (618 loc) · 18.8 KB
/
Copy pathsmsd.conf
File metadata and controls
657 lines (618 loc) · 18.8 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
#
# /etc/smsd.conf
#
# List of names of your modems, maximum 64 devices. This limit is changeable. After
# version >= 3.1.12 this setting can be given in shortened form: devices = GSM* 101-164 . "GSM"
# defines a prefix, "101" is the number of first modem and "164" is the number of last modem. The
# example is extracted to: devices = GSM101,GSM102,GSM103 etc...
devices = Port* 1-8
#devices = Port1
# Path of the Outgoing Queue folder.
outgoing = /var/spool/sms/outgoing
# Path of the default Queue directory in case you do not use provider-sorting.
checked = /var/spool/sms/checked
# Path of the Incoming Folder.
incoming = /var/spool/sms/incoming
# Path of the Failed Folder. Delete this line if you do not want to keep failed files.
failed = /var/spool/sms/failed
# Path of the Sent Folder. Delete this line, if you do not want to keep copies of each sent message
# file.
sent = /var/spool/sms/sent
# Name of the blacklist and whitelist files. The black list takes precedence before the white list.
# See http://smstools3.kekekasvi.com/index.php?p=blacklist for more details and sample usage.
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
# Available from version >= 3.0.9. With this setting messages using ISO or GSM alphabet are stored
# using UTF-8 character set.
incoming_utf8 = yes
# Name of the log file. Delete this line, if you want to use the syslog for logging. You can use
# "1" to write to the console (stdout). This setting can be overridden by the -l (ell) command line
# argument.
#logfile = /var/log/smstools/smsd.log
# Sets the verbosity of a log file. This affects also syslog. If you want all messages in syslog,
# you need to set it to "7" (or higher) here and "*" in the config file of syslog. If you want less
# messages, you can reduce it here or in the config file of syslog, both will work.
#
# debug 7 All AT-Commands and modem answers and other detailed informations useful for
# debugging
# info 6 Information what is going on at the moment. Not detailled enough for debugging but
# maybe interesting.
# notice 5 Information when a message was received or sent and when something not normal
# happens but program still works fine (for example wrong destination number in SMS
# file).
# warning 4 Warning when the program has a problem sending a single short message.
# error 3 Error message when the program has temporary problem (for example modem answered
# with ERROR during initialization or a file can not be accessed).
# critical 2 Error message when the program has a permament problem (for example sending failed
# many times or wrong permissions to a queue).
#
# The numbers in this table are taken from GNU/Linux. Probably all operating systems use the same
# numbers. After version >= 3.1 a value can be defined as a word, like LOG_INFO, INFO or info.
loglevel = 2
logfile=/var/log/smstools/smsd.log
# Specifies the directory where smsd stores statistic files. The directoy must exist before you
# start smsd. If not given, then the program does not write statistic files. After version >= 3.1.1
# message counter files are stored to this directory even if smsd is compiled without statistics
# enabled.
stats = /var/log/smstools/smsd_stats
# Smsd writes statistics files every n seconds. Value "0" disables statistics but counters are
# still updated if stats directory is defined.
stats_interval = 3600
# Smsd does not write statistic files when no message was sent or received (Zero-Counters) if this
# is set to yes.
stats_no_zeroes = no
# Location of infofile and pidfile can be changed with these settings. This is usually necessary if
# the smsd is running as an unpriviledged user. If a sms3 script is used to start and stop the smsd,
# these settings should be defined in the script. These four settings can be overridden by the
# command line argument(s):
#
# -ix set infofile to x
# -px set pidfile to x
# -ux set username to x
# -gx set groupname to x
#
#infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smsd.pid
# Smsd sleep so many seconds when it has nothing to do.
delaytime = 10
# Available after >= 3.1.4. If this value is not set, delaytime setting is used in the main process.
# With this setting outgoing messages can be checked more frequently than incoming messages.
delaytime_mainprocess = 15
# A modem sleeps so many seconds when it answers a command with ERROR.
errorsleeptime = 5
# A modem is not used so many seconds when it seems to be out of order.
blocktime = 3600
# Forces smsd to empty the first SIM card memory before sending SM. This is a workaround for modems
# that cannot send SM with a full SIM card.
receive_before_send = no
# Controls if and how the program splits large text messages. The program does not split text
# messages with UDH. If splitting is disabled, binary messages requiring more than one part are
# not sent.
#
# 0 disabled
# 1 enabled, no part-number
# 2 enabled, text numbers
# 3 enabled, concatenated format (not supported by some phones)
#
autosplit = 3
# Available from version >= 3.0. Controls when the incoming PDU string(s) is stored to message file.
#
# 0 no PDU's are stored
# 1 unsupported PDU's are stored
# 2 unsupported and PDU's with 8bit binary data or Unicode text are stored
# 3 all PDU's are stored
#
# Header is "PDU: " and PDU's of a multipart message are stored from 1 to n order.
store_received_pdu = 1
# Available from version >= 3.0.9. Controls when the outgoing PDU string(s) is stored to message file.
#
# 0 no PDU's are stored
# 1 failed (to send) PDU's are stored
# 2 failed and PDU's with 8bit binary data or Unicode text are stored
# 3 all PDU's are stored
#
# Header is "PDU: " and PDU's of a multipart message are stored from 1 to n order.
store_sent_pdu = 1
# Available from version >= 3.1.1. This setting defines if all executables are checked during the
# startup check. Usually eventhanler, alarmhandler etc. are shell scripts or some other single
# files which can be executed and therefore checked simply. If using a settings like
# eventhandler = /usr/local/bin/php -f /usr/local/bin/smsd_eventhandler.php, the check will fail
# and smsd will not start unless executable_check = no is defined.
executable_check = no
# External program that checks if a message file is valid. (This script can also be used to convert
# message file from UTF-8 to ISO format, which is internal format used in smsd. See
# scripts/checkhandler-utf-8 for sample code.) After version >= 3.0.9 the smsd converts messages
# automatically from UTF-8 to ISO, if it is necessary. If the checkhandler return a non-zero (other
# than 2) exitcode the message will not be sent. With the smsd version >= 3.1 the checkhandler can
# also modify a message file. Exitcode 2 means that the checkhandler has moved a message to the
# spooler by itself.
#checkhandler = /usr/local/bin/smscheck
# Specifies an external program or script that will execute whenever a message was sent, received
# or failed. (If your locale is UTF-8, you can use this script to convert received messages from
# smsd's internal format (ISO) to UTF-8. See scripts/eventhandler-utf-8 for code sample.) After
# version >= 3.0.9 there is incoming_utf8 = yes setting available. Using this setting the external
# conversion is not required.
#eventhandler = /opt/skrypty/lte-modem/lte
# Available from version >= 3.1.7. This setting defines an eventhandler to use with USSD messages.
# It is possible to use the same script or program which is used as eventhandler, but it's not a
# default because basically those scripts are not compatible without modifications. After an USSD
# message is received, and probably ussd_convert is done, eventhandler_ussd is called. Smsd checks
# what is the current character set of a modem and creates a temporary file which contains the USSD
# answer. Arguments for the eventhandler_ussd are:
#
# $1 "USSD" keyword.
# $2 Filename (which contains the answer).
# $3 Devicename.
# $4 Character set.
# $5 Command what was used to get the USSD answer.
#
# Eventhandler_ussd can do whatever is needed with the USSD answer. It can also modify the answer,
# or delete the file. After eventhandler_ussd returns, smsd will check if the file still exists.
# If it exists, it's first line is taken as a new answer. Modified answer is then logged and
# probably printed to the regular_run_statfile.
#eventhandler_ussd = /opt/skrypty/lte-modem/ussd
# You can specify here an external program that is started whenever an alarm occurs. After
# version >= 3.1 a value can be defined as a word, like LOG_INFO, INFO or info.
#alarmhandler = /home/socks/pool_alarm.pl
# Specifies what levels start an alarmhandler. You can use value between 2 and 7.
alarmlevel = 7
# Available from version >= 3.0. See http://smstools3.kekekasvi.com/index.php?p=fileformat for
# details of possible values.
#validity = 255
# Available from version >= 3.0. Controls when the incoming Unicode text is decoded internally.
#decode_unicode_text = no
# Available from version >= 3.0. Controls when the incoming multipart message is combined
# internally.
#internal_combine = no
blocktime = 10
[queues]
Port1 = /var/spool/sms/Port1
Port2 = /var/spool/sms/Port2
Port3 = /var/spool/sms/Port3
Port4 = /var/spool/sms/Port4
Port5 = /var/spool/sms/Port5
Port6 = /var/spool/sms/Port6
Port7 = /var/spool/sms/Port7
Port8 = /var/spool/sms/Port8
[Port1]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB0
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
#pin = 0000
#pinsleeptime = 2
queues = Port1
[Port2]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB1
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
#pin = 0000
#pinsleeptime = 2
queues = Port2
[Port3]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB2
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
#pin = 0000
#pinsleeptime = 2
queues = Port3
[Port4]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB3
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
#secondary_memory = TA
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
select_pdu_mode = no
queues = Port4
[Port5]
#init = AT+CMEE=1
pre_init = yes
device = /dev/ttyXRUSB4
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
queues = Port5
[Port6]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB5
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
queues = Port6
[Port7]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB6
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
queues = Port7
[Port8]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB7
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
queues = Port8
#unpooled ports
[Port9]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB8
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
[Port9]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB8
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
[Port10]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB9
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
[Port11]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB10
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
[Port12]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB11
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
[Port13]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB12
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
[Port14]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB13
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
[Port15]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB14
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no
[Port16]
#init = AT+CMEE=1
pre_init = no
device = /dev/ttyXRUSB15
init = AT+CPMS="SM"
incoming = yes
mode = new
baudrate = 115200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
check_memory_method = 1
primary_memory = SM
pin = ignore
check_sim = yes
check_sim_cmd = AT+CUSD=1,"*123#",15
check_sim_reset = AT+CFUN=1,1
check_sim_retries = forever
check_sim_wait = 2
device_open_retries = -1
#give_up_on_io_error = no
eventhandler = /home/socks/pool_forward_sms.pl
ignore_unexpected_input = +CME ERROR: 10
detect_unexpected_input = no