Re: smsbox UCS-2/mo-recode functional change between 1.4.4 and 1.5.0
Hi Kannel developers
I have encountered an issue where an automated test that works on 1.4.4 fails on 1.5.0. To cut a long story short (more detail below), I am testing that sending a UCS2 message sent to myself, with mo-recode set to true in my SMSbox config, comes back
with the UTF-8 I am expecting to my web service.
The gateway invocation that I used previously was this:
In both cases the log line 'INFO: MO message converted from UCS-2 to UTF-8’
appears without error.
What’s strange is that in gw/smsbox.c:1666 it looks as if its expecting to decode from UTF16-BE … so without digging too deeply into the code I am going to assume that it’s translated from
UCS-2 elsewhere to UTF16-BE, and maybe whatever library has switched from assuming BE to LE … or something. Over to you ...
Environment is x86_64 debian jessie from the docker hub, running in a docker container on a MacBook pro. config attached.
All the best and keep up the good work lads and lasses! Jim
RedMatter Ltd Jim Page VP Mobile Services +44 (0)333 150 1666 +44 (0)7870 361412 [hidden email]