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 May 25, 2024 10:48
SMSTools3 Community » Help and support Bottom

[fixed in 3.1.14] sent messages

  This topic is locked

Page:  1

Author Post
Member
Registered:
Sep 2010
Location: Russian Federation
Operating system name and version: OpenBSD 4.7
Version of smsd: 3.1.12
Smsd installed from: sources
Name and model of a modem / phone: Siemens M35
Interface: serial


I have sent folder configured in smsd.conf to have copies of sent messages
"sent = /var/spool/sms/sent", but sent folder remains empty

Version 3.1.8 installed before on my site worked as expected

What i am missing?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
There should not be difference between those versions of smsd.

Can you show the smsd.conf file?

After a message is sent, what is in the smsd.log?

Member
Registered:
Sep 2010
Location: Russian Federation
Topic owner
Log:
smsd: Smsd v3.1.12 started.
smsd: Running as root:wheel.
smsd: File mode creation mask: 022 (0644, rw-r--r--).
smsd: Outgoing file checker has started. PID: 5713.
GSM1: Modem handler 0 has started. PID: 5179.
GSM1: Using check_memory_method 1: CPMS is used.
GSM1: CGSN: 35385701684xxxx
GSM1: IMSI: 25001070505xxxx
smsd: Moved file /var/spool/sms/outgoing/smsd_1tLMzX to /var/spool/sms/queue/MTS
smsd: Moved file /var/spool/sms/outgoing/smsd_XARAjB to /var/spool/sms/queue/MTS
smsd: Moved file /var/spool/sms/outgoing/smsd_rKsz4Z to /var/spool/sms/queue/MTS
GSM1: SMS sent, Message_id: 40, To: 7989958xxxx, sending time 6 sec.
GSM1: SMS sent, Message_id: 41, To: 7917344xxxx, sending time 5 sec.
GSM1: SMS sent, Message_id: 42, To: 7927313xxxx, sending time 5 sec.
GSM1: SMS received (report, Message_id: 40, Status: 0), From: 7989958xxxx
GSM1: SMS received (report, Message_id: 41, Status: 0), From: 7917344xxxx
GSM1: SMS received (report, Message_id: 42, Status: 0), From: 7927313xxxx

smsd.conf:

devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
report = /var/spool/sms/report
sent = /var/spool/sms/sent

#mypath = /usr/local/bin
logfile = /var/log/smsd.log
loglevel = 5
smart_logging = yes
#alarmhandler = /usr/local/bin/alarmevent
alarmlevel = 4
delaytime = 10
errorsleeptime = 10
blocktime = 3600
#blockafter = 3
#eventhandler = /usr/local/bin/smsevent
stats = /var/spool/sms/stats
#stats_interval = 3600
#stats_no_zeroes = no
#blacklist = /etc/smsd.black
#whitelist = /etc/smsd.white
#checkhandler = /usr/local/bin/smscheck
receive_before_send = no
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
autosplit = 3
# store_received_pdu 0=no, 1=unsupported, 2=unsupported and 8bit, 3=all
#store_received_pdu = 1
#validity = 255
#decode_unicode_text = no
#internal_combine = no
#user = smsd
#group = dialout
infofile = /var/run/smsd.working
pidfile = /var/run/smsd.pid
keep_filename = yes
store_original_filename = yes
#regular_run = /var/spool/sms/regular_run
#regular_run_interval = 300
#admin_to = (number)
#terminal = no
#filename_preview = 80
#incoming_utf8 = yes

[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
MTS = /var/spool/sms/queue/MTS

[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
# OTHER = 0,1,2,3,4,5,6,7,8,9
MTS = 0,1,2,3,4,5,6,7,8,9

[GSM1]
# init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
device = /dev/cua00
incoming = yes
queues = MTS
#You don't need a PIN for mobile phones
#pin = 1111
mode = new
#smsc = 491722270000
baudrate = 19200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
#eventhandler = /usr/local/bin/smsevent
#primary_memory = memory name
#terminal = no
#filename_preview = 80
#incoming_utf8 = yes

[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
MTS = /var/spool/sms/queue/MTS

[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
# OTHER = 0,1,2,3,4,5,6,7,8,9
MTS = 0,1,2,3,4,5,6,7,8,9

[GSM1]
# init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
device = /dev/cua00
incoming = yes
queues = MTS
#You don't need a PIN for mobile phones
#pin = 1111
mode = new
#smsc = 491722270000
baudrate = 19200
rtscts = yes
cs_convert = yes
report = yes
memory_start = 1
#eventhandler = /usr/local/bin/smsevent
#primary_memory = memory name
#secondary_memory = memory name
#secondary_memory_max = number
#pdu_from_file = /var/spool/sms/GSM1-PDU
#sending_disabled = yes
#decode_unicode_text = no
#internal_combine = no
#pinsleeptime = 5
#admin_to = (number)
#message_limit = 20
#message_count_clear = 60
 
 
'smsdconf' Syntax Highlight powered by GeSHi



« Last edit by keke on Mon Sep 20, 2010 14:37, 166 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
I do not see why it does not work on your server. At least it works on OpenBSD 4.5, which was installed February 2009 (not upgraded after that).

You could change the loglevel to 6 and try once again after restarting the smsd. In the log the should then be either "Moved file..." or "Deleted file..." message.

Member
Registered:
Sep 2010
Location: Russian Federation
Topic owner
sorry, still dont see moving to "sent" phrase in log
and folder also empty
# ls -l /var/spool/sms/sent

/var/log/smsd.log:


Member
Registered:
Sep 2010
Location: Russian Federation
Topic owner
# uname -mpvsr
OpenBSD 4.7 GENERIC.MP#130 amd64 Intel(R) Xeon(R) CPU X3430 @ 2.40GHz
#

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
There is:



It's missing a filename. Can you verify from the log that there surely was no filename after "to"?

I'm trying to check what causes this error...

Member
Registered:
Sep 2010
Location: Russian Federation
Topic owner
I've checked it: it's really empty, no filename after "to"

I've noticed one more thing: /tmp is not empty and files looks quite like "sent" ones


Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
:shock:

I'm testing this now with a newly installed OpenBSD 4.7. At least I was able to reproduce this issue, which did not happen with 4.5.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Okay, there is rename() function used, and at least on OpenBSD 4.7 it did not move file between different mounts.

Here is a quick fix: In the file smsd.c, search (tmp_filename. You will find the following:


 // 3.1.12:
 //sprintf(tmp_filename,"%s.XXXXXX", filename);
 sprintf(tmp_filename,"/tmp/smsd.XXXXXX");

Change the third line to:


 sprintf(tmp_filename,"/var/spool/sms/smsd.XXXXXX");

Save, recompile and run.


Thank's for reporting this issue. I have to check later if there are another places which should be changed too. This causes that version 3.1.14 should be published within a few days including this fix.

Member
Registered:
Sep 2010
Location: Russian Federation
Topic owner
Thank you very much for greate App!) I am at home now, tomorrow I'll recompile and reinstall

Member
Registered:
Sep 2010
Location: Russian Federation
Topic owner
OK) it works
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Thanks. There is also 3.1.14 now available, including a fix for this issue.

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.