Hi,

I am trying to send SMS in unicode using Kannel. When I send it using the
following command, it works fine.

lynx -dump
'http://localhost:13013/cgi-bin/sendsms?username=foo&password=foobar&to=9999
999999&text=%xx%yy&coding=2'

it works fine.

However if I use the XML Post method of sending messages and specify the
coding tag = 2 and text as "%xx%yy", it sends a blank message.The XML is

<message><submit><da><number>nnnnn</number></da><oa><number>3899</number></o
a><ud>%xx%yy</ud><dcs><mclass>0</mclass><coding>2</coding></dcs><from><user>
abc</user><pass>foobar</pass></from></submit></message>

If I see the SMSBox log, for the method 1 following is the log

2005-01-26 07:20:30 Sent SMS [SMSC:abc] [SVC:abc] [ACT:] [BINF:] [from:3899]
[to:nnnnnn] [flags:-1:2:-1:-1:-1] [msg:16:] [udh:0:xxyy]

whereas for method 2 the log is

2005-01-26 07:20:30 Sent SMS [SMSC:abc] [SVC:abc] [ACT:] [BINF:] [from:3899]
[to:nnnnnn] [flags:0:2:-1:-1:-1] [msg:16:000000xx000000yy] [udh:0:]

There are 2 differences

1. In the flags section, in method 1 the first flag is -1 wherease in method
2 the first flag is 0
2. In the msg section before before every unicode value, six zeroes are
added.

Either I am missing some xml tag or the code that interprets the XML is not
able to interpret the coding. Please do let me know what can be the issue
and how do I get around it.

Thanks a lot for your help



Reply via email to