On Seg, 2002-07-29 at 12:28, Chirag wrote:
> hi,
> 
>      Currently I am using Kannel1.2 on Linux. I have configured my Kannel to
> accept message with DCS value. I use the URL to send binary message to my
> GSM Modem using the text (encoded binary data) and DCS = 247 (0xF7).
> 
>     I am able to successfully send binary msg with DCS most of the time but
> the Kannel rejects it when
> 
> 1) I use hex character from 0x09 to 0x0D in my binary encoded messages (eg.
> text=%09%0A%0B%0C%0D etc). I understand that hex range from 0x09 to 0x0D is
> a set of special characters but then how do i encoded them in the URL so
> that the Kannel accepts it.
> 
> 2) Similarly when i want to encode 00 in hex (ie %00) in the URL. I receive
> 00 as 5C0 at the other end. I think the kannel is encoding %0 to 5C0 but
> then how do i send 0x00 in url encoded form so that i receive 0x00 at the
> other end.
> 
> The following url gives 'Failed' from the kannel because i have encoded 0x0C
> in the url. Please tell me how to send these special characters thru URL.
> 
> ../sendsms.php?to=+919845068852&text=%4D%43%47%53%0C&from=543&dcs=247&pid=0

Are you sending directly to kannel or through a phpfile ?

If this is http://kannel:13013/sendsms you should use %2f instead of +
in to field.
Then, if you are sending an 8bit message, you should do
text=%4d...%0C&coding=2&... to force 8bits



Reply via email to