sms - Cannot convert gsm to unicode -
dears
i using kannel 1.5.0 gateway smpp on rhel6 , when receive sms these errors:
2016-01-28 13:28:07 [8613] [6] warning: not convert gsm (0xd4) unicode. 2016-01-28 13:28:07 [8613] [6] warning: not convert gsm (0xf2) unicode. .....
and receive messages incorrectly application, here request captured:
http://127.0.0.1:9091/services/smsreceive?msisdn=%2b353872849216&coding=0&smstext=%c3%85%3ch%c3%b9a%c3%91%c3%b9%25evm%c3%b9)zx%c3%acp&dcs=-1&charset=utf-8'
and kannel configuration:
group = core admin-port = 13001 smsbox-port = 13002 admin-password = bar log-file = "/home/user/logs/kannellogs/smscgateway.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1;172.*.*.*;192.*.*.*;10.*.*.*" admin-allow-ip = "127.0.0.1;172.*.*.*;192.*.*.*;10.*.*.*" admin-deny-ip = "*.*.*.*" access-log = "/home/user/logs/kannellogs/access.log" # smsbox setup group = smsbox bearerbox-host = localhost sendsms-port = 13013 log-file="/home/user/logs/kannellogs/smsbox.log" log-level = 0 access-log="/home/user/logs/kannellogs/sms_access.log" reply-couldnotfetch = "service down, please try again later.(notfetch)" reply-couldnotrepresent = "service down, please try again later.(notrepresent)" reply-requestfailed = "service down, please try again later.(failed)" reply-emptymessage = "" mo-recode = true # send-sms users group = sendsms-user username=test password=test user-allow-ip = "*.*.*.*" concatenation = true split-chars = "#!^&*(" max-messages = 10 # smpp parameters smsc account group = smsc smsc = smpp smsc-id =smsc12345 smsc-username = voda smsc-password = 12345678 host = 123.222.111.11 port = 1040 system-type = vodafone403 interface-version = 34 source-addr-autodetect = false source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 reconnect-delay = false reconnect-delay = 10 transceiver-mode = true throughput = 10 address-range = "^12345$" max-pending-submits = 3 group = sms-service accepted-smsc = "smsc12345" keyword = default get-url = "http://127.0.0.1:9091/services/smsreceive?msisdn=%p&coding=%c&smstext=%a&dcs=%m&charset=%c" catch-all=true max-messages = 0
i new kannel please if doing wrong
you should check kannel docs;
for "normal" message, "gsm" (coding=0), "binary" (coding=1) or "utf-16be" (coding=2)
what see in url
&coding=0
what should be:
&coding=2
and take care url encoded correctly , length of unicode message (if using aggregators not support concatenation , long messages)
hope helps.
vedran
Comments
Post a Comment