SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sat Apr 20, 2024 10:56
SMSTools3 Community » Help and support Bottom

Outgoing SMS problem

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Oct 2017
Location: Czech Republic
Operating system name and version: Linux Voyage 0.8
Version of smsd: 3.1.14
Smsd installed from: preinstalled
Name and model of a modem / phone: FOXBOX for 8 SIM
Interface: USB to 8x COM (integrated in FOXBOX)

Hi,

until now, we use SMSTools3 only for receiving al all is working, but now we want use it to sending message from our monitoring system.
When i send messages from monitoring to SMS server, where is smsd application, in log i see this (five messages sent to server):
2017-10-20 08:08:51,5, smsd: Moved file /mnt/flash/spool/outgoing/1508479731871 to /mnt/flash/spool/GSM0
2017-10-20 08:08:52,5, smsd: Moved file /mnt/flash/spool/outgoing/1508479731345 to /mnt/flash/spool/GSM0
2017-10-20 08:08:52,5, smsd: Moved file /mnt/flash/spool/outgoing/1508479731309 to /mnt/flash/spool/GSM0
2017-10-20 08:08:53,5, smsd: Moved file /mnt/flash/spool/outgoing/1508479731711 to /mnt/flash/spool/GSM0
2017-10-20 08:08:53,5, smsd: Moved file /mnt/flash/spool/outgoing/1508479731821 to /mnt/flash/spool/GSM0


But no SMS is sent from SMS server to destination numbers. When i did restart of smsd service with /etc/init.d/smsd restart , then smsd sent one SMS split to two parts. But 4 SMS remained still. When i make restart again, next one SMS was sent, but 3 SMS remained..
I think, then when i'm receive some SMS in samo modem, modem send next SMS, but always only one.

Can you helo me please?

Here is config:
# SMS ENGINE CONFIGURATION
#
# AUTHOR:       Luca Rasina luka@kdev.it
# DATE:         29.04.2013
# PURPOSE:      Configuration for multi-modem smsd daemon
#
#Here is the list of the currently active modems.
devices= GSM0,GSM1,GSM2,GSM3,GSM4,GSM5,GSM6,GSM7
#
#
#System logs (from 2 to 7)
logfile = /var/log/smsd.log
loglevel = 5
delaytime = 0
delaytime_mainprocess = 0
internal_combine = yes
#incoming_utf8 = yes
#
#Queues setting, NEVER EDIT PATHS UNDER THIS LINE
#
trust_outgoing = no
outgoing = /mnt/flash/spool/outgoing
incoming = /mnt/flash/spool/incoming
sent = /mnt/flash/spool/sent
failed=/mnt/flash/spool/failed
mypath = /mnt/flash/etc/sms/
#blacklist=/mnt/flash/root/source/custom/black
#whitelist=/mnt/flash/root/source/custom/white
#
#
#Message AUTO-SPLIT 0 disable 1,2,3 accepted
autosplit = 3
#
#Timers for errors (specify how many seconds stop on error)
blocktime = 3
errorsleeptime = 3
#
#MODEM PROPERTIES
[GSM0]
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB0
memory_start = 1
send_delay = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 300
regular_run_cmd = AT+CSQ
regular_run_logfile = /var/log/smsd_run0.log
#regular_run_loglevel = 7
incoming = 2
queues = GSM0, ALL
baudrate = 115200
rtscts = no
report = yes
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandler0
#pin = 0000
#report_device_details = yes
#logfile = /var/log/smsd_gsm0.log
#loglevel = 7
#
[GSM1]
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB1
memory_start = 1
send_delay = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 300
regular_run_cmd = AT+CSQ
regular_run_logfile = /var/log/smsd_run1.log
#regular_run_loglevel = 7
incoming = 2
queues = GSM1, ALL
baudrate = 115200
rtscts = no
report = yes
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandler1
#pin = 0000
#
[GSM2]
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB2
memory_start = 1
send_delay = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 300
regular_run_cmd = AT+CSQ
regular_run_logfile = /var/log/smsd_run2.log
#regular_run_loglevel = 7
incoming = 2
queues = GSM2, ALL
baudrate = 115200
rtscts = no
report = yes
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandler2
#pin = 0000
#
[GSM3]
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB3
memory_start = 1
send_delay = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 300
regular_run_cmd = AT+CSQ
regular_run_logfile = /var/log/smsd_run3.log
#regular_run_loglevel = 7
incoming = 2
queues = GSM3, ALL
baudrate = 115200
rtscts = no
report = yes
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandler3
#pin = 0000
#
[GSM4]
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB4
memory_start = 1
send_delay = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 300
regular_run_cmd = AT+CSQ
regular_run_logfile = /var/log/smsd_run4.log
#regular_run_loglevel = 7
incoming = 2
queues = GSM4, ALL
baudrate = 115200
rtscts = no
report = yes
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandler4
#pin = 0000
#
[GSM5]
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB5
memory_start = 1
send_delay = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 300
regular_run_cmd = AT+CSQ
regular_run_logfile = /var/log/smsd_run5.log
#regular_run_loglevel = 7
incoming = 2
queues = GSM5, ALL
baudrate = 115200
rtscts = no
report = yes
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandler5
#pin = 0000
#
[GSM6]
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB6
memory_start = 1
send_delay = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 300
regular_run_cmd = AT+CSQ
regular_run_logfile = /var/log/smsd_run6.log
#regular_run_loglevel = 7
incoming = 2
queues = GSM6, ALL
baudrate = 115200
rtscts = no
report = yes
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandler6
#pin = 0000
#
[GSM7]
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB7
memory_start = 1
send_delay = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 300
regular_run_cmd = AT+CSQ
regular_run_logfile = /var/log/smsd_run7.log
#regular_run_loglevel = 7
incoming = 2
queues = GSM7, ALL
baudrate = 115200
rtscts = no
report = yes
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandler7
#pin = 0000
#
#
[queues]
ALL = /mnt/flash/spool/master
GSM0 = /mnt/flash/spool/GSM0
GSM1 = /mnt/flash/spool/GSM1
GSM2 = /mnt/flash/spool/GSM2
GSM3 = /mnt/flash/spool/GSM3
GSM4 = /mnt/flash/spool/GSM4
GSM5 = /mnt/flash/spool/GSM5
GSM6 = /mnt/flash/spool/GSM6
GSM7 = /mnt/flash/spool/GSM7
#
[provider]
ALL = 0,1,2,3,4,5,6,7,8,9,s
GSM0 = 0
GSM1 = 0
GSM2 = 0
GSM3 = 0
GSM4 = 0
GSM5 = 0
GSM6 = 0
GSM7 = 0
 
'smsdconf' Syntax Highlight powered by GeSHi


Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Set loglevel = 7 and check how eventhandler is called after sending. Does it return?

Member
Registered:
Oct 2017
Location: Czech Republic
Topic owner
Hi, i think, that i found today source of problem.
Our previous administrator of SMS gateway set to each modem incoming = 2, but this parameter accept only yes/no and i think 1/0.
When i changed incoming to yes, messages are send ok :-)

But previous colleague already changed parameter memory_start from 0 to 1, because GSM modems saved messages from memory block 1, not from 0.

After today solving of sending messages i changed also this memory_start parameter to 0 and all loks good.

Do you think, that previous value 2 in incoming parameter can had something common with memory_start problem?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
The setting incoming can have value 2, which means high priority. This should be used if a modem cannot send messages when all memory slots are used in the modem. With high setting messages are read before each part is tried to send.

I understood that your system sent one SMS containing two parts, but then stopped and did not send the next SMS. To see what is actually happening and where the modem process stops, use the loglevel 7.

Incorrect memory_start causes delays when there is a message received in the modem, but it should not cause freezing which requires restart for the daemon.

Member
Registered:
Oct 2017
Location: Czech Republic
Topic owner
Aha, in this case i don't understand, why with incoming set to 2 aren't SMS sended.
I will try debug log tommorow.

I don't wrote, that smsd service is freezed after send only one SMS. It is working normally, receiving messages without problem, but SMS is send only, when i do restart of service OR wait for next receiving, because after receive is one SMS sent too..

Why? I don't know.

I will see, if i will have again problem with memory_start or not, when i changed value back to 0. Morning i will see memory of SIM cards, if in memory isn't some remain SMS, which isn't received throught SMSTools..

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.