Re: [bug] clickatell unicode HTTP code for Kannel

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi Hillel,

I don't see any bug at this point in time because you just wrong submitted UTF16 message to Kannel.
if you send message via sendsms interface and tell kannel that coding=2 that kannel expects to see message
body encoded as UTF16. If I look at your example with lynx this is not a case.

Please try with coding=2 and text encoded as UTF16...

Thanks,
Alexander Malysh

Am 27.01.2011 um 16:52 schrieb Hillel:

> Hi,
> 
> We have been testing with concatenated Unicode SMSs and decided to try the
> Kannel code for Clickatell.  There seems to be a bug. Version of Kannel:
> svn-r4850M
> Has anyone found this bug and created a patch for it?
> We also emailed this directly to Clickatell.
> The HTTP Code for Clickatell works fine for a non-unicode SMS.
> Unless there is patch, we would advise people to not send Unicode via
> Clickatell and Kannel.
> 
> Message to convert to Unicode:
> Sr Eduardo Seu seguro automóvel 4191 caduca 2011/01/08 para renovar contacte
> 227280019/220 ou visite uma das nossas agências
> 
> Message sent directly to Kannel using the Clickatell HTTP code in Kannel:
> lynx -dump
> 'http://localhost:13013/cgi-bin/sendsms?username=xxxxx&password=xxxxxx&to=%2
> B27737613111&from=yyyyy&text=Sr Eduardo Seu seguro automóvel 4191 caduca
> 2011/01/08 para renovar contacte 227280019/220 ou visite uma das nossas
> agências&coding=2&charset=UTF-16BE&smsc=clickatell'
> 
> From Kannel Logs: Bearerbox log we see (The password is replaced with
> xxxxx):
> 2010-12-18 23:50:20 [25479] [32] DEBUG: HTTP[clickatell]: Sending request
> <http://api.clickatell.com/http/sendmsg?to=%2B27737613111&from=yyyyy&api_id=
> xxxxxx&user=ecomm&password=xxxxx&callback=3&req_feat=48&cliMsgId=b0a6a37975c
> d46fa83c849a3a4bb61c0&unicode=1&text=5372204564756172646F2053657520736567757
> 26F206175746F6DF376656C20343139312063616475636120323031312F30312F30382070617
> 2612072656E6F76617220636F6E7461637465203232373238303031392F323230206F7520766
> 97369746520756D6120646173206E6F73736173206167EA6E63696173>
> 
> The unicode that Kannel generates and sends to Clickatell is incorrect.  
> It looks like UTF8 but it's not (see the end of the unicode)
> 
> UTF-8:
> 5372204564756172646f205365752073656775726f206175746f6dc3b376656c203431393120
> 63616475636120323031312f30312f303820706172612072656e6f76617220636f6e74616374
> 65203232373238303031392f323230206f752076697369746520756d6120646173206e6f7373
> 6173206167c3aa6e63696173
> 
> UTF-16BE
> 005300720020004500640075006100720064006f002000530065007500200073006500670075
> 0072006f0020006100750074006f006d00f300760065006c0020003400310039003100200063
> 0061006400750063006100200032003000310031002f00300031002f00300038002000700061
> 00720061002000720065006e006f00760061007200200063006f006e00740061006300740065
> 0020003200320037003200380030003000310039002f0032003200300020006f007500200076
> 0069007300690074006500200075006d006100200064006100730020006e006f007300730061
> 007300200061006700ea006e0063006900610073
> 
> Kannel Configuration for Clickatell:
> 
> # SMSC CONNECTIONS
> group = smsc
> smsc = http
> smsc-id = clickatell
> system-type = clickatell
> allowed-smsc-id = clickatell
> port = 13015
> smsc-username = yyyyy
> smsc-password = xxxxx
> #On Clickatell its the api_id
> system-id = yyy
> #smsbox-id = dlrbox
> send-url = "http://api.clickatell.com/http"
> #connect-allow-ip = "*.*.*.*"
> #callback = 3
> connect-allow-ip = "127.0.0.1;x.y.z.a"
> status-success-regex = "ok"
> status-permfail-regex = "failure"
> status-tempfail-regex = "retry later"
> 
> Regards
> 
> 
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.