Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gammu-smsd - mixes received messages #402

Open
chupnik opened this issue Apr 23, 2018 · 0 comments
Open

gammu-smsd - mixes received messages #402

chupnik opened this issue Apr 23, 2018 · 0 comments

Comments

@chupnik
Copy link

chupnik commented Apr 23, 2018

Hello.

My gammu-smsd mixes received messages with previous.
I tried different versions of gammu(and updated from ppa).
I could not understand the patterns of the problem.
But apparently the problem is only with Cyrillic messages.

Device: Huawei E1550
OS: Debian 9(Proxmox 5.1)
gammu 1.39 (from ppa ppa:nijel/ppa)

LANG=ru_RU.UTF-8
LANGUAGE=
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME=en_US.UTF-8
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

nano /etc/gammu-smsdrc

[gammu]
port = /dev/ttyUSB_utps_modem
connection = at115200
name = huawei_e1550
model = at
logfile = /var/log/gammu/gammu.log
logformat = textall

[smsd]
Service = files
InboxPath = /var/spool/gammu/inbox/
OutboxPath = /var/spool/gammu/outbox/
SentSMSPath = /var/spool/gammu/sent/
ErrorSMSPath = /var/spool/gammu/error/
InboxFormat = unicode
OutboxFormat = unicode
TransmitFormat = auto
debugLevel = 3
LogFile = /var/log/gammu/smsd.log
DeliveryReport = sms
DeliveryReportDelay = 7200
CheckSecurity = 0

I tried to disable gammu-smsd service to make sure that the problem was in it.
If you read the messages manually(gammu cli) without gammu-smsd - then no problem!

I decoded messages from gammu getallsms using a script:

#!/bin/bash
FILES=/var/spool/gammu/inbox/*
for f in $FILES
do
  printf "Processing SMS file $f\n"
  iconv -f UTF-16 -t UTF-8 $f
  printf "\n"
done

Output:
Processing SMS file /var/spool/gammu/inbox/IN20180423_174826_00_+7XXXXXXXXXX_00.txt
тест1 тест2 тест3
Processing SMS file /var/spool/gammu/inbox/IN20180423_174828_00_+7XXXXXXXXXX_00.txt
тест1 тест2 тест3
Processing SMS file /var/spool/gammu/inbox/IN20180423_174856_00_+7XXXXXXXXXX_00.txt
Тестытест
Processing SMS file /var/spool/gammu/inbox/IN20180423_174901_00_+7XXXXXXXXXX_00.txt
тест1 тест2 тест3
Processing SMS file /var/spool/gammu/inbox/IN20180423_174933_00_+7XXXXXXXXXX_00.txt
Текстыест2
Processing SMS file /var/spool/gammu/inbox/IN20180423_175007_00_+7XXXXXXXXXX_00.txt
Test1
Processing SMS file /var/spool/gammu/inbox/IN20180423_175016_00_+7XXXXXXXXXX_00.txt
Test 2 test est
Processing SMS file /var/spool/gammu/inbox/IN20180423_175024_00_+7XXXXXXXXXX_00.txt
Тебе2 t

I highlighted bold text that is repeated in messages!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant