| Keywords: Mode: All keywords (AND) |
|
Tue Oct 27, 2015 06:35
|
|
|
|
Mon Oct 05, 2015 08:07
|
|
|
|
Fri Sep 11, 2015 13:53
|
leshakolob: hello !
problem was solved, messages are sent correctly from ubuntu from folder OUTGOING.
but when i create a file in a different text editor in Windows in sms come invalid characters in coding UTF-16.
|
|
Thu Sep 10, 2015 13:48
|
|
|
|
Thu Sep 10, 2015 13:13
|
leshakolob: Operating system name and version: Ubuntu-server 14.04.1
Version of smsd: 3.1.15
Smsd installed from: package repository
Name and model of a modem: Huawei 420s
Interface: USB
Hello.
SMS come in incorrect format. Help me please. As such, about "킿톀 킸킲 킵톂".
My conf:
checkhandler=/usr/local/bin/smsd_checkhandler.sh
#eventhandler=/usr/local/bin/smsd_eventhandler.sh
store_received_pdu = 3
devices = modem1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
[modem1]
init = AT
device = /dev/ttyUSB0
incoming = yes
pin = 0000
report = yes
My checkhandler:
#!/bin/bash
if sed -e '/^$/ q' < "$2" | grep "^Alphabet: UCS2" > /dev/null; then
TMPFILE=`mktemp /tmp/smsd_XXXXXX`
sed -e '/^$/ q' < "$2" | sed -e 's/Alphabet: UCS2/Alphabet: UTF-8/g' > $TMPFILE
sed -e '1,/^$/ d' < "$2" | iconv -f UNICODEBIG -t UTF-8 >> $TMPFILE
mv $TMPFILE "$2"
fi
My example report:
From: 79270542663
From_TOA: 91 international, ISDN/telephone
From_SMSC: 79023708080
Sent: 15-09-10 17:03:40
Received: 15-09-10 16:03:52
Subject: modem1
Modem: modem1
IMSI: 250078790455840
Report: no
Alphabet: ISO
Length: 119
PDU: 07919720738080F002E40B919772502466F3519001713004615190017130446100
SMS STATUS REPORT
Message_id: 228
Discharge_timestamp: 15-09-10 17:03:44
Status: 0,Ok,short message received by the SME
|