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 Sep 26, 2020 14:14
SMSTools3 Community » Help and support Bottom

incoming sms is automatical deleted on incoming folder! Why?

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Apr 2011
Location: Vila Verde / Braga / Braga, Portugal
CENTOS7/FREEPBX/PLAYSMS:
Last Version of smsd: Last version available on September 2019
Smsd installed from: smstools3 webiste following instructions
Name and model of a modem / phone: Huawei E169
Interface: USB

Everything si working fine, except this:

If i send an SMS, the system sends, and when it gets report, the log reports the short message receveid and imediately delete's the same message!

Also, i'm not getting incoming messages!

Here's my setup:
# Modem configuration
[GSM91]
#CGSN: 359xxxxxxxxxxxx
#IMSI: 268xxxxxxxxxxxxx
device = /dev/ttyUSB0
#init = AT+CPMS="SM"
memory_start=0
queues = assp
incoming = yes
report = yes
baudrate = 19200
report_device_details = yes

And in log smsd.log

I have to send 1 short message for /var/spool/sms//out.20190922140901.0.1.21
2019-09-22 15:09:02,6, GSM91: Checking device for incoming SMS
2019-09-22 15:09:02,6, GSM91: Checking if modem is ready
2019-09-22 15:09:02,6, GSM91: Pre-initializing modem
2019-09-22 15:09:03,6, GSM91: Signal Strength Indicator: (15,99) -83 dBm (Good), Bit Error Rate: not known or not detectable
2019-09-22 15:09:03,6, GSM91: Checking if Modem is registered to the network
2019-09-22 15:09:04,6, GSM91: Modem is registered to the network
2019-09-22 15:09:04,6, GSM91: Selecting PDU mode
2019-09-22 15:09:04,6, GSM91: Checking memory size
2019-09-22 15:09:05,6, GSM91: Used memory is 0 of 30
2019-09-22 15:09:05,6, GSM91: No SMS received
2019-09-22 15:09:05,6, GSM91: Sending SMS from ASSP to 35193xxxxxxx
2019-09-22 15:09:05,6, GSM91: Checking if modem is ready
2019-09-22 15:09:05,6, GSM91: Pre-initializing modem
2019-09-22 15:09:06,6, GSM91: Signal Strength Indicator: (15,99) -83 dBm (Good), Bit Error Rate: not known or not detectable
2019-09-22 15:09:06,6, GSM91: Checking if Modem is registered to the network
2019-09-22 15:09:07,6, GSM91: Modem is registered to the network
2019-09-22 15:09:07,6, GSM91: Selecting PDU mode
2019-09-22 15:09:10,5, GSM91: SMS sent, Message_id: 32, To: 35193xxxxxxx, sending time 5 sec.
2019-09-22 15:09:10,6, GSM91: Moved file /var/spool/sms//out.20190922140901.0.1.21 to /var/spool/sms/sent/out.20190922140901.0.1.21
2019-09-22 15:09:10,6, GSM91: Checking device for incoming SMS
2019-09-22 15:09:10,6, GSM91: Checking memory size
2019-09-22 15:09:10,6, GSM91: Used memory is 0 of 30
2019-09-22 15:09:10,6, GSM91: No SMS received
2019-09-22 15:09:10,6, GSM91: Checking device for incoming SMS
2019-09-22 15:09:10,6, GSM91: Checking memory size
2019-09-22 15:09:11,6, GSM91: Used memory is 0 of 30
2019-09-22 15:09:11,6, GSM91: No SMS received
2019-09-22 15:09:21,6, GSM91: Checking device for incoming SMS
2019-09-22 15:09:21,6, GSM91: Checking if modem is ready
2019-09-22 15:09:21,6, GSM91: Pre-initializing modem
2019-09-22 15:09:22,6, GSM91: Signal Strength Indicator: (15,99) -83 dBm (Good), Bit Error Rate: not known or not detectable
2019-09-22 15:09:22,6, GSM91: Checking if Modem is registered to the network
2019-09-22 15:09:23,6, GSM91: Modem is registered to the network
2019-09-22 15:09:23,6, GSM91: Selecting PDU mode
2019-09-22 15:09:23,6, GSM91: Checking memory size
2019-09-22 15:09:24,6, GSM91: Used memory is 1 of 30
2019-09-22 15:09:24,6, GSM91: Trying to get stored message 0
2019-09-22 15:09:24,5, GSM91: SMS received (report, Message_id: 32, Status: 0,Ok,short message received by the SME), From: 351936345233
2019-09-22 15:09:24,6, GSM91: Wrote an incoming message file: /var/spool/sms/incoming/GSM91.4vAfS6
2019-09-22 15:09:24,6, GSM91: Deleting message 0
2019-09-22 15:09:25,6, GSM91: Checking device for incoming SMS
2019-09-22 15:09:25,6, GSM91: Checking memory size
2019-09-22 15:09:26,6, GSM91: Used memory is 0 of 30
2019-09-22 15:09:26,6, GSM91: No SMS received
_____________________________________________________________________

The incoming folder, also changes date & time of folder when it receives the sms!
But the folder is allways empty!

Also incoming SMS, nor appear on smsd.log nor on incoming folder.

Thanks in advance, if someone could help!

Regards_
Rui aka MareAlta


« Last edit by MareAlta on Sun Sep 22, 2019 15:22, 12 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
It is PlaySMS which deletes the incoming file. It is not a good situation, because an eventhandler of smsd may still need that file, and PlaySMS does not take care of it.

If you need to use PlaySMS, and are not willing to modify it, there are several settings available to get a rid of this issue.

Create a folder /var/spool/sms/incoming_copy and make it writable for smsd.

Use these global settings:
incoming_copy = /var/spool/sms/incoming_copy
eventhandler_use_copy = yes

Member
Registered:
Apr 2011
Location: Vila Verde / Braga / Braga, Portugal
Topic owner
Ok Keke, Thank You for your help!

I wll have to ask playsms where are incoming sms, because everything is empty on inbox!

Best regards
Rui

Member
Registered:
Apr 2011
Location: Vila Verde / Braga / Braga, Portugal
Topic owner
keke wrote
If you need to use PlaySMS, and are not willing to modify it, there are several settings available to get a rid of this issue.

I using playsms that i found free and usefull. And I don't have any problem modifying it. Just don't know where for now!
But, i'm open to other free software or hand made scripts!
My use os sms is not for comercial pruposes. it's only for my associates!

Regards
Rui

Member
Registered:
Apr 2011
Location: Vila Verde / Braga / Braga, Portugal
Topic owner
Wait, Keke, it's smething related with modem and probably the AT string (I am saying)!

Because, i'm sending some SMS's to the number, and it doesn't appear on smsd log.

Only the short message when asking for report.

Meaning= I don't get any incoming normal SMS

Should it be the AT string?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Try this modem setting:

init = AT+CPMS="SM","SM","SM";+CNMI=2,0,0,2,1

Member
Registered:
Apr 2011
Location: Vila Verde / Braga / Braga, Portugal
Topic owner
Yes it works. Thank You very much. Just one thing!

If somebody use á or ã sms will be cut! I went to see the log and this was there:

SMS received, From: 3519xxxxxxx
2019-09-24 08:30:03,5, GSM91: Cannot convert 2. character
2019-09-24 08:30:03,5, GSM91: Cannot convert 4. character

Any sugestions?

Regards
Rui

Member
Registered:
Apr 2011
Location: Vila Verde / Braga / Braga, Portugal
Topic owner
An update to this problem!

When sending from Android (xiaomi for example) an SMS with á ó ã etc, the message it's cutted and the rest of the message is lost!

When sending from Windows 10 mobile (lumia 950), The entire message appears but clean of ´, ~, ` or ª etc


e.g.
Android SMS - Olá! Bom dia = Ol

Windows 10 Mobile (lumia 950) - Olá! Bom dia = Ola! Bom dia

Weard...!

Regards
Rui

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Global settings:

incoming_utf8 = yes
decode_unicode_text = yes

Member
Registered:
Apr 2011
Location: Vila Verde / Braga / Braga, Portugal
Topic owner
keke wrote
Global settings:

incoming_utf8 = yes
decode_unicode_text = yes

Running as smstools:smstools.
2019-09-30 15:32:27,2, smsd: There was 1 error while reading the config file:
2019-09-30 15:32:27,2, smsd: - Unknown setting for modem GSM91: incoming_utf8
2019-09-30 15:32:27,2, smsd: There was 1 major problem found.
2019-09-30 15:32:27,2, smsd: Smsd mainprocess terminated.

With decode is working. Only incoming_utf8, is not working! The message breaks!

Member
Registered:
Apr 2011
Location: Vila Verde / Braga / Braga, Portugal
Topic owner
MareAlta wrote
keke wrote
Global settings:

incoming_utf8 = yes
decode_unicode_text = yes

Running as smstools:smstools.
2019-09-30 15:32:27,2, smsd: There was 1 error while reading the config file:
2019-09-30 15:32:27,2, smsd: - Unknown setting for modem GSM91: incoming_utf8
2019-09-30 15:32:27,2, smsd: There was 1 major problem found.
2019-09-30 15:32:27,2, smsd: Smsd mainprocess terminated.

With decode is working. Only incoming_utf8, is not working! The message breaks!

It's working now!

I've removed incoming_utf8 from the modem config and pasted before modem config!

It's now working!

Everything is ok now!

Thank You for your help KEKE!

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.