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. Tue Apr 16, 2024 23:39
SMSTools3 Community » Help and support Bottom

Receiving sms problem with letters Č, Š, Ž, sending is OK

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jun 2018
Location: Slovak Republic
Operating system name and version: Debian 9 Stretch
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem / phone: Huawei E169
Interface: USB

Hi.

I am facing a problem when receiving SMS with letters č, š or ž. If I send SMS that contains č,š, ž,.. (from cli using sendsms) SMS is sent correctly,...

On receiving,... for example if SMS contains word Želimlje, file contains:

From: 123456789
From_TOA: 91 international, ISDN/telephone
From_SMSC: 12345678
Sent: 18-06-15 08:35:05
Received: 18-06-15 08:35:08
Subject: GSM1
Modem: GSM1
IMSI: 293413330272222
IMEI: 359632315299322
Report: no
Alphabet: UCS2
Length: 8

^A}^@e^@l^@i^@m^@l^@j^@e


Log file shows (using eventhandler):


2018-06-15 09:08:26,6, GSM1: Modem is registered to the network
2018-06-15 09:08:26,6, GSM1: Selecting PDU mode
2018-06-15 09:08:26,7, GSM1: -> AT+CMGF=0
2018-06-15 09:08:26,7, GSM1: Command is sent, waiting for the answer. (5)
2018-06-15 09:08:26,7, GSM1: <- OK
2018-06-15 09:08:26,6, GSM1: Checking memory size
2018-06-15 09:08:26,7, GSM1: -> AT+CPMS?
2018-06-15 09:08:26,7, GSM1: Command is sent, waiting for the answer. (5)
2018-06-15 09:08:26,7, GSM1: <- +CPMS: "SM",1,50,"SM",1,50,"SM",1,50 OK
2018-06-15 09:08:26,6, GSM1: Used memory is 1 of 50
2018-06-15 09:08:26,6, GSM1: Trying to get stored message 0
2018-06-15 09:08:26,7, GSM1: -> AT+CMGR=0
2018-06-15 09:08:26,7, GSM1: Command is sent, waiting for the answer. (5)
2018-06-15 09:08:26,7, GSM1: <- +CMGR: 0,,35 07918346011033F6040B918346610023F600088160519080918010017D0065006C0069006D006C006A0065 OK
2018-06-15 09:08:26,5, GSM1: SMS received, From: 12345678
2018-06-15 09:08:26,6, GSM1: Wrote an incoming message file: /var/spool/sms/incoming/GSM1.p1M9tc
2018-06-15 09:08:26,7, GSM1: Running eventhandler: /var/spool/sms/sms_eventhandler.php RECEIVED /var/spool/sms/incoming/GSM1.p1M9tc
2018-06-15 09:08:26,7, GSM1: Done: eventhandler, execution time 0 sec., status: 0 (0)
2018-06-15 09:08:26,3, GSM1: Exec: eventhandler said something:
2018-06-15 09:08:26,3, GSM1: !

2018-06-15 09:08:26,3, GSM1: ! sms_type:RECEIVED
2018-06-15 09:08:26,3, GSM1: ! From: 12345678
2018-06-15 09:08:26,3, GSM1: ! From_TOA: 91 international, ISDN/telephone
2018-06-15 09:08:26,3, GSM1: ! From_SMSC: 12345678
2018-06-15 09:08:26,3, GSM1: ! Sent: 18-06-15 09:08:19
2018-06-15 09:08:26,3, GSM1: ! Received: 18-06-15 09:08:26
2018-06-15 09:08:26,3, GSM1: ! Subject: GSM1
2018-06-15 09:08:26,3, GSM1: ! Modem: GSM1
2018-06-15 09:08:26,3, GSM1: ! IMSI: 11111
2018-06-15 09:08:26,3, GSM1: ! IMEI: 11111
2018-06-15 09:08:26,3, GSM1: ! Report: no
2018-06-15 09:08:26,3, GSM1: ! Alphabet: UCS2
2018-06-15 09:08:26,3, GSM1: ! Length: 8
2018-06-15 09:08:26,3, GSM1: !

2018-06-15 09:08:26,3, GSM1: ! ^A}

If I try to convert PDU, text is OK.

My smsd.conf file:

devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7

[GSM1]
device = /dev/ttyUSB0
incoming = yes
eventhandler = /var/spool/sms/sms_eventhandler.php
report=yes
memory_start=0
#pin = 1111



My locale on Debian is:
locale
LANG=sl_SI.UTF-8
LANGUAGE=
LC_CTYPE="sl_SI.UTF-8"
LC_NUMERIC="sl_SI.UTF-8"
LC_TIME="sl_SI.UTF-8"
LC_COLLATE="sl_SI.UTF-8"
LC_MONETARY="sl_SI.UTF-8"
LC_MESSAGES="sl_SI.UTF-8"
LC_PAPER="sl_SI.UTF-8"
LC_NAME="sl_SI.UTF-8"
LC_ADDRESS="sl_SI.UTF-8"
LC_TELEPHONE="sl_SI.UTF-8"
LC_MEASUREMENT="sl_SI.UTF-8"
LC_IDENTIFICATION="sl_SI.UTF-8"
LC_ALL=

Member
Registered:
Jun 2018
Location: Slovak Republic
Topic owner
SOLVED!!

I've been trying all variants of settings
incoming_utf8 = yes
decode_unicode_text = yes
cs_convert = yes
Alphabet,...

The solution to my problem was:
global setting incoming_utf8 = yes
and modem setting decode_unicode_text = yes

Now it works perfectly,... including saving log with eventhandler to SQLite.

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.