SMS Server Tools 3
 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. The forum is currently read-only, but will open soon. Thu Nov 21, 2024 15:45
SMSTools3 Community » Bug reports Bottom

[Fixed in 3.1.21] Killed by signal 11

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Apr 2017
Location: Russian Federation
Hi!

Here is my config for Huawei modem
devices = huawei
incoming=/var/spool/sms/incoming
outgoing=/var/spool/sms/outgoing
checked=/var/spool/sms/checked
sent=/var/spool/sms/sent
logfile = /var/log/smsd.log
loglevel = 7
eventhandler = /usr/local/etc/sms_recieved.sh
checkhandler = /usr/local/etc/sms_converter.sh
incoming_utf8 = yes
internal_combine = yes
smart_logging = yes
stats = /var/spool/sms/stats/
stats_interval = 5
#status_include_uptime = yes
decode_unicode_text = yes
user = root
group = wheel
receive_before_send = yes
keep_filename = no
[huawei]
device = /dev/ttyU0.1
init = AT+CPMS="SM";+CNMI=2,0,0,2,1
incoming = yes
outgoing = yes
signal_quality_ber_ignore = yes
check_network = no
report_device_details = yes
regular_run_cmdfile = /var/spool/sms/regular_cmd.run
regular_run_interval = 15
regular_run_logfile = /var/log/smsd_cmd_report.log
smsc = 79168999100
routed_status_report_cnma = no
cs_convert = yes
memory_start = 0
report_device_details = no
detect_message_routing = no
using_routed_status_report = no
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes

 
 
'smsdconf' Syntax Highlight powered by GeSHi


Recieving SMS fine, but when trying to send - message sent, but smsd crushes.

Here is the log records



Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
What is the name and version of Operating System?

What is the version of smsd, and is it unmodified?

Have you ever sent messages without problems?

To see if this issue has something to do with the Unicode alphabet, can you send a simple message containing the word Hello only with Alphabet: ISO header? Is the result the same?

Member
Registered:
Apr 2017
Location: Russian Federation
Topic owner
Hi!

System is FreeBSD 11, smstools installed from "pkg" (pkg install smstools)
smsd version - Version 3.1.19

send sms with command sendsms 7916******2 "Hello, world" && tail -f /var/log/smsd.log
here is the log


I have core dumped smsd.core.

May send you.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Please send the core dump to:
Hidden private text.


I think I still need to install FreeBSD environment here for testing, and it may take some time.

On Ubuntu I did get the error while testing with the similar message and settings than you have. However, it likely seems that there is some bug somewhere. :(

Member
Registered:
Apr 2017
Location: Russian Federation
Topic owner
Sent you a mail.

Thank you!

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
I have to say that I'm very confused now. :shock:

I was testing FreeBSD 11.0 on VirtualBox running on Windows, and smsd from the FreeBSD repository worked properly. I also compiled 3.1.19 and 3.1.20 from sources, with libmm but without inotify, and those also worked without any problems.

When your modem process gets killed, it is about to write the message:
SMS sent, Message_id: 131, To: <destination>, sending time n sec, where n is usually between 2 and 8, depending on the speed of network and modem.

This kind of a message can be found on the core dump, but the sending time is -1077990200.

I'm still looking forward with this issue, but currently I would like to know what kind is your hardware. Is it a traditional server, or is it some embedded device?

Are you willing to compile smsd from sources, if necessary in the future for more tests and probably for debug information?

Member
Registered:
Apr 2017
Location: Russian Federation
Topic owner
Hi!

I use Raspberry PI with FreeBSD 11 built in crochet.
My modem is huawei


I will try to compile SMS tools from sources, because I used precompiled version, obtained from


Will keep you in touch.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Okay, I tested FreeBSD 11 with RPi 1, and got the same error. There is a bug in the smsd code, and I have to release a new version to fix it, in the next few days.

Luckily maintainers of FreeBSD are publishing new releases very fast, so 3.1.21 will be soon available. But I have to test and release it first, and while waiting for the official FreeBSD package, here is how to fix the bug.

Download and extract the sources of 3.1.20 and go to the src directory.

Edit smsd.c. Search time %i sec.%s and you are on the line 4323:

writelogfile(LOG_NOTICE, 0, "SMS sent%s, Message_id: %s%s, To: %s, sending time %i sec.%s", partstr, tmpid, replacestr, to, time(0) -start_time, answer);

Change it to:

writelogfile(LOG_NOTICE, 0, "SMS sent%s, Message_id: %s%s, To: %s, sending time %i sec.%s", partstr, tmpid, replacestr, to, (int)(time(0) -start_time), answer);

Edit Makefile. Comment out CFLAGS += -D NOSTATS to enable statistics, and add two lines under it:

#CFLAGS += -D NOSTATS
CFLAGS += -I/usr/local/include
LFLAGS += -L/usr/local/lib -linotify

Use gmake to compile smsd. There is one warning listed, that is not important now but will be fixed in 3.1.21 too.

Thanks for reporting this bug.

Member
Registered:
Apr 2017
Location: Russian Federation
Topic owner
Yes, that works!

Glad to help you)

Login and Post Reply

Page:  1

SMSTools3 Community » Bug reports Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.