Hi,

first of all, please specify what version of Kannel you are using
(there were important changes about coding parameter) and provide some
more debug info.

Here is a snip from userguide near SMS Push (send-sms) CGI Variables:

<<snip>>
coding number Optional. Sets the coding scheme bits in DCS field.
Accepts values 0 to 2, for 7bit, 8bit or UCS2. If unset, defaults to 7
bits unless a udh is defined, which sets coding to 8bits.
<<snip>>

It means that if udh is defined, phone will still recognize it as a
binary (8 bit) message.

On Mon, 3 Jan 2005 12:23:55 -0800, Olga Rudchenko
<[EMAIL PROTECTED]> wrote:
> 
> 
> I am wondering about a problem I get when sending an SMS message. I get it
> when I try to send the SMS through Kannel gateway to mobile. I specified the
> UDH in header because I need to send the sms to Java application on this
> phone. I use coding=1 to specify the Text message because I believe the
> binary message is not reliable if I send sms from one carrier to another.  
> 
>  
> 
> The problem is that I get the message on mobile InBox starting from the
> second character. In other words, the first letter was cut.  The symbol that
> is being cut is actually a part of the user data. So if I send "Hello", I'd
> get "ello". 
> 
>  
> 
> I use url like this to send my message:
> http://67.94.250.228:13013/cgi-bin/sendsms?smsc=tffwave&user=user&pass=password&udh=%06%05%04%13%89%00%00&coding=1&to=14168794990&text=Hello
> 
>  
> 
> You see, I specified the port number in UDH  %06%05%04%13%89%00%00, coding =
> 1 which means Text message, and text = Hello. I noticed if I send the
> message without UDH there is no problem â the entire message is being
> received. Could this be some influence of using UDH? I analyzed the  log
> file for Kannel, the length of user data in case if I use UDH does not fit
> the real data and does not fit user data length + UDH length. I know that
> coding for user data is hexadecimal 7bit representation coding for UDH. 
> 
>  
> 
> 0051000B814161784999F00000A7 0D 06050413890000 C8329BFD06
> 
>  
> 
> The 0D is length = 13 in decimal; 06050413890000 is my UDH, C8329BFD06 is
> Hello in 7bit coding. I expect to see length = 5 for Hello or at least 5+14â
> 
>  
> 
> I would really appreciate if anybody can give me any hint or a piece of
> advice.
> 
> Thanks so much in advance.
> 
>  
> 
>             
>  
> 
> 
> Olga Rudchenko
> Developer
> 
> Bitfone
>  Corporation (formerly MDI)
> Office: +1.905.326.9110 x 287
> Mobile: +1.416.909.6542
> Email: [EMAIL PROTECTED]
> URL: www.bitfone.com
> 
> Find it. Fix it. Enhance it.
>  


-- 
Dziugas

Reply via email to