Version of smsd: 3.1.11
Smsd installed from: sources
Name and model of a modem: Wavecom WMOD2
Interface: serial
Great thanks to Stefan Frings, Keijo "Keke" Kasvi and all supporters.
It toke me some time, to configure this modem. So I post my config here.
#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
# Last changed: Mon Aug 16 12:28:47 CEST 2010
#
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
#loglevel = 7
loglevel = 7
#delaytime = 10
delaytime = 10
#errorsleeptime = 10
errorsleeptime = 10
#blocktime = 3600
#stats = /var/log/smsd_stats
stats = /var/log/smsd_stats
#stats_interval = 3600
stats_interval = 3600
#stats_no_zeroes = no
# Der Handler ist nicht installiert
#checkhandler = /usr/local/bin/smscheck
#
# receive_before_send = yes/no
# Default value: no.
# 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
# aus http://smstools3.kekekasvi.com/topic.php?id=158
receive_before_send = yes
#
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
# autosplit = 3
# aus http://smstools3.kekekasvi.com/topic.php?id=158
autosplit = 3
#
# store_received_pdu = number
# Default value: 1.
# 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.
#
# Default:
# store_received_pdu = 1
#
# Testweise:
store_received_pdu=3
#validity = 255
#decode_unicode_text = no
#internal_combine = no
# You can specify here an external program that is started whenever an alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value between 2 and 5.
# alarmlevel = 4
# eventhandler = @EVENTHANDLER@
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
#############################################################################
[queues]
# Commented lines are examples for germany
# D1 = /var/spool/sms/D1
# D2 = /var/spool/sms/D2
# O2 = /var/spool/sms/O2
# EPLUS = /var/spool/sms/EPLUS
# QUAM = /var/sppol/sms/QUAM
# MOBILCOM = /var/spool/sms/MOBILCOM
OTHER = /var/spool/sms/OTHER
#############################################################################
[provider]
# Commented lines are examples for germany
# D1 = 49160, 49170, 49171, 49175, 49151
# D2 = 491520, 49162, 49172, 49173, 49174
# O2 = 49176, 49179, 49159
# EPLUS = 49163, 49177, 49178, 49157
# QUAM = 49150
# MOBILCOM = 49156
# aus http://smstools3.kekekasvi.com/topic.php?id=158
OTHER = 0,1,2,3,4,5,6,7,8,9
#############################################################################
# Wavecom WM0D2
[GSM1]
# ausfuehrlichere Fehlermeldungen
init = AT+CMEE=1
#
# # Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0
device = /dev/ttyS0
#
# Fuer eingehende Nachrichten
incoming = yes
#
# Welche Queue?
queues = OTHER
#
# You don't need a PIN for mobile phones
pin = 2537
#
# Default:
# mode = new
#
# For Falcom A1 and maybe some other old modems of GSM phase 1 (1990-1995).
# In the receiving side this mode does not have SCA information in the begin of PDU.
#
# Das Modem gehoert schon zur Phase II und ist damit "new"
mode = new
#
# Short Message Service Centre = SMSC
#
# Specifies the SMSC number that this modem should use to send SM. You need
# this setting only if the default of the SIM card is bad. Write the phone
# number of the SMSC in international format without the starting "+"
#
# Deutsche SMS Center im Ueberblick
# Netz/Vetragsart SMS Center Nr. des Netzbetreibers (im Handy eingestellt)
# T-D1 +49 171 0760 000
# D2 +49 172 2270 000
# E-Plus +49 177 0610 000 (gecheckt auf http://www.eplus.de/Kontakt-und-Hilfe/SMS/SMS.asp)
# Interkom +49 176 0000 443
# D1 Xtra Prepaid +49 171 0760 000
# D2 CallYa Prepaid +49 172 2270 000
# E-Plus Free&Easy Prepaid Nicht moeglich
# Interkom LOOP Prepaid Nicht moeglich
#
# Wichtig:
# Keine Leerzeichen hinter der SMSC!
#
# Die Zentrale fuer E-Plus
smsc = 491770610000
#
# Die Modems haben ein langsames Interface
baudrate = 9600
#
# Hardwareflow Controll
# aus http://smstools3.kekekasvi.com/topic.php?id=158
rtscts = yes
#
# The program converts normal text messages into GSM character set. You
# need this to display german umlauts and control characters correctly.
# cs_convert = yes
# aus http://smstools3.kekekasvi.com/topic.php?id=158
cs_convert = yes
#
# If you enable this, the program requests a status report SM from the SMSC
# for each sent message. This does not work on many mobile phones and on
# some modems.
# report = no
# aus http://smstools3.kekekasvi.com/topic.php?id=158
report = yes
#
# memory_start = number
# Default value: 1.
# Tells the first memory space number for received messages. This is
# normally 1, Vodafone Mobile Connect Card starts with 0.
# memory_start = 1
# aus http://smstools3.kekekasvi.com/topic.php?id=158
memory_start = 1
#
# primary_memory = memory name
# secondary_memory = memory name
# secondary_memory_max = number
# pdu_from_file = /var/spool/sms/GSM1-PDU
# sending_disabled = no
# decode_unicode_text = no
# internal_combine = no
#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
# Last changed: Mon Aug 16 12:28:47 CEST 2010
#
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
#loglevel = 7
loglevel = 7
#delaytime = 10
delaytime = 10
#errorsleeptime = 10
errorsleeptime = 10
#blocktime = 3600
#stats = /var/log/smsd_stats
stats = /var/log/smsd_stats
#stats_interval = 3600
stats_interval = 3600
#stats_no_zeroes = no
# Der Handler ist nicht installiert
#checkhandler = /usr/local/bin/smscheck
#
# receive_before_send = yes/no
# Default value: no.
# 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
# aus http://smstools3.kekekasvi.com/topic.php?id=158
receive_before_send = yes
#
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
# autosplit = 3
# aus http://smstools3.kekekasvi.com/topic.php?id=158
autosplit = 3
#
# store_received_pdu = number
# Default value: 1.
# 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.
#
# Default:
# store_received_pdu = 1
#
# Testweise:
store_received_pdu=3
#validity = 255
#decode_unicode_text = no
#internal_combine = no
# You can specify here an external program that is started whenever an alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value between 2 and 5.
# alarmlevel = 4
# eventhandler = @EVENTHANDLER@
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
#############################################################################
[queues]
# Commented lines are examples for germany
# D1 = /var/spool/sms/D1
# D2 = /var/spool/sms/D2
# O2 = /var/spool/sms/O2
# EPLUS = /var/spool/sms/EPLUS
# QUAM = /var/sppol/sms/QUAM
# MOBILCOM = /var/spool/sms/MOBILCOM
OTHER = /var/spool/sms/OTHER
#############################################################################
[provider]
# Commented lines are examples for germany
# D1 = 49160, 49170, 49171, 49175, 49151
# D2 = 491520, 49162, 49172, 49173, 49174
# O2 = 49176, 49179, 49159
# EPLUS = 49163, 49177, 49178, 49157
# QUAM = 49150
# MOBILCOM = 49156
# aus http://smstools3.kekekasvi.com/topic.php?id=158
OTHER = 0,1,2,3,4,5,6,7,8,9
#############################################################################
# Wavecom WM0D2
[GSM1]
# ausfuehrlichere Fehlermeldungen
init = AT+CMEE=1
#
# # Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0
device = /dev/ttyS0
#
# Fuer eingehende Nachrichten
incoming = yes
#
# Welche Queue?
queues = OTHER
#
# You don't need a PIN for mobile phones
pin = 2537
#
# Default:
# mode = new
#
# For Falcom A1 and maybe some other old modems of GSM phase 1 (1990-1995).
# In the receiving side this mode does not have SCA information in the begin of PDU.
#
# Das Modem gehoert schon zur Phase II und ist damit "new"
mode = new
#
# Short Message Service Centre = SMSC
#
# Specifies the SMSC number that this modem should use to send SM. You need
# this setting only if the default of the SIM card is bad. Write the phone
# number of the SMSC in international format without the starting "+"
#
# Deutsche SMS Center im Ueberblick
# Netz/Vetragsart SMS Center Nr. des Netzbetreibers (im Handy eingestellt)
# T-D1 +49 171 0760 000
# D2 +49 172 2270 000
# E-Plus +49 177 0610 000 (gecheckt auf http://www.eplus.de/Kontakt-und-Hilfe/SMS/SMS.asp)
# Interkom +49 176 0000 443
# D1 Xtra Prepaid +49 171 0760 000
# D2 CallYa Prepaid +49 172 2270 000
# E-Plus Free&Easy Prepaid Nicht moeglich
# Interkom LOOP Prepaid Nicht moeglich
#
# Wichtig:
# Keine Leerzeichen hinter der SMSC!
#
# Die Zentrale fuer E-Plus
smsc = 491770610000
#
# Die Modems haben ein langsames Interface
baudrate = 9600
#
# Hardwareflow Controll
# aus http://smstools3.kekekasvi.com/topic.php?id=158
rtscts = yes
#
# The program converts normal text messages into GSM character set. You
# need this to display german umlauts and control characters correctly.
# cs_convert = yes
# aus http://smstools3.kekekasvi.com/topic.php?id=158
cs_convert = yes
#
# If you enable this, the program requests a status report SM from the SMSC
# for each sent message. This does not work on many mobile phones and on
# some modems.
# report = no
# aus http://smstools3.kekekasvi.com/topic.php?id=158
report = yes
#
# memory_start = number
# Default value: 1.
# Tells the first memory space number for received messages. This is
# normally 1, Vodafone Mobile Connect Card starts with 0.
# memory_start = 1
# aus http://smstools3.kekekasvi.com/topic.php?id=158
memory_start = 1
#
# primary_memory = memory name
# secondary_memory = memory name
# secondary_memory_max = number
# pdu_from_file = /var/spool/sms/GSM1-PDU
# sending_disabled = no
# decode_unicode_text = no
# internal_combine = no
#
« Last edit by keke on Tue Aug 17, 2010 18:27, 178 months ago. »