Hello there,
I'm having some issues with codification but that different point depending if i reply from my iphone or if i do from android,
For example:
IPHONE:
root@oem-desktop:/var/spool/sms/incoming# cat *
From: 50688xx
From_TOA: 91 international, ISDN/telephone
From_SMSC: 5058500111
Sent: 20-02-12 09:43:59
Received: 20-02-12 09:44:10
Subject: GSM2
Modem: GSM2
IMSI: 71203xx
IMEI: 3557xx
Report: no
Alphabet: ISO
Length: 61
Maâ–’ana es miâ–’rcoles y El Niâ–’o quiere jugar con el murciâ–’lago
ANDROID: (WORKS FINE)
From: 506501xxx
From_TOA: 91 international, ISDN/telephone
From_SMSC: 5058500111
Sent: 20-02-12 09:45:49
Received: 20-02-12 09:46:02
Subject: GSM2
Modem: GSM2
IMSI: 71203xxx
IMEI: 355xx
Report: no
Alphabet: UCS2
Length: 32
Maâ–’ana es miâ–’rcoles en el â–’rbol root@oem-desktop:/var/spool/sms/incoming#
I can decode incoming messages from android with:
root@oem-desktop:/var/spool/sms/incoming# tail -n1 GSM2.Tk0yvj | iconv -f ISO-8859-1
Mañana es miércoles en el árbol
But i cannot decode messages sent from my iphone:
root@oem-desktop:/var/spool/sms/incoming# tail -n1 GSM2.khhzPU | iconv -f ISO-8859-1
Ma¤ana es mi�rcoles y El Ni¤o quiere jugar con el murci�lago
I already try mixing incoming_utf8, decode_unicode_text and cs_convert_optical but nothing looks to work...
I have also try to identify the encoding of messages sent by iphone which say on file are:
root@oem-desktop:/var/spool/sms/incoming# chardetect GSM2.Tk0yvj (ANDROID)
GSM2.Tk0yvj: ISO-8859-1 with confidence 0.73
root@oem-desktop:/var/spool/sms/incoming# chardetect GSM2.khhzPU (iPhone)
GSM2.khhzPU: Windows-1252 with confidence 0.73
root@oem-desktop:/var/spool/sms/incoming#
But no matter what I tried i cannot decode the iPhone messages...
root@oem-desktop:/var/spool/sms/incoming# tail -n1 GSM2.khhzPU | iconv -f ISO-8859-1
Ma¤ana es mi�rcoles y El Ni¤o quiere jugar con el murci�lago root@oem-desktop:/var/spool/sms/incoming#
root@oem-desktop:/var/spool/sms/incoming# tail -n1 GSM2.khhzPU | iconv -f Windows-1252
Ma¤ana es mi‚rcoles y El Ni¤o quiere jugar con el murci‚lago
My current settings are:
root@oem-desktop:/var/spool/sms/incoming# cat /etc/smsd.conf | grep -v '^#'
devices = GSM1,GSM2
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
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
report = /var/spool/sms/reports
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
loglevel = 5
incoming_utf8 = no
receive_before_send = yes
autosplit = 3
eventhandler = /etc/tunnel/eventhandler.php
[queues]
ALL = /var/spool/sms/checked
GSM1 = /var/spool/sms/GSM1
GSM2 = /var/spool/sms/GSM2
[GSM1]
device = /dev/serial/by-path/pci-0000:00:14.0-usb-0:1:1.0-port0
queues = GSM1, ALL
incoming = yes
baudrate = 115200
report = yes
report_device_details = yes
decode_unicode_text = no
cs_convert_optical = no
[GSM2]
device = /dev/serial/by-path/pci-0000:00:14.0-usb-0:2:1.0-port0
queues = GSM2, ALL
incoming = yes
baudrate = 115200
report = yes
report_device_details = yes
decode_unicode_text = no
cs_convert_optical = no
root@oem-desktop:/var/spool/sms/incoming#
Any clue about it?
Thank you in advanced.