Tania

The problem we had was that our SMSC was expecting one encoding and our Kannel 
instance was providing a different one.  Our solution was for our SMSC to 
re-configure the bind to so that it used the same encoding that we were using; 
I see no reason to why it shouldn't be possible to change the Kannel instance 
to be the same as the SMSC.

(The reason the SMSC changed their expected encoding was that they offered to 
do so and it was easier to let them.)

The reason that the message is truncated is because '@' looks like an 
end-of-string terminator.  I'm not sure if it is Kannel that is doing the 
truncating or whether it happens at the SMSC, but the net result is the same.

There's no need for (or suggestion of) custom character translation.  The ASCII 
code for '@' is 40 (in Hex).  With the bind encoding done correctly it should 
be possible to URL encode the '@' as %40.

Richard


-----Original Message-----
From: Πετσούκα Τάνια [mailto:[email protected]] 
Sent: 13 May 2011 15:50
To: Richard Crawshaw; Mike Nakos
Cc: [email protected]
Subject: Re: sqlbox greek gsm-7

I don't understand exactly what you mean.
Message doesn't reach the smsc complete.
Kannel code truncates it. It thinks that '0x00' is the end of the message. 
That's the problem.
Smsc cannot setup custom character translations for us, so i could send '0x040' 
and they give me @.


----- Original Message ----- 
From: "Richard Crawshaw" <[email protected]>
To: "Πετσούκα Τάνια" <[email protected]>; "Mike Nakos" <[email protected]>
Cc: <[email protected]>
Sent: Friday, May 13, 2011 5:32 PM
Subject: RE: sqlbox greek gsm-7


>I understand that '@' should be URL encoded (char code 40, which is the 
>ASCII code for '@').  We've had similar problems where the bind was 
>expecting GSM encoding but our Kannel instance was using UTF-8 (which 
>appears to be Kannel's default).  The solution that was implemented was 
>that our SMSC changed the encoding on the bind.  We had to re-bind, but 
>that wasn't a problem.
>
> Richard
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf 
> Of ?ets???a ????a
> Sent: 13 May 2011 14:30
> To: Mike Nakos
> Cc: [email protected]
> Subject: Re: sqlbox greek gsm-7
>
> From  U.G :
> "Since @ is translated into 0x00 which will break the SMPP PDU..."
>
> So, maybe the question is " Is there a way to escape 0x00  in message 
> data??
>
> How do you others,  send '@' with utf8 and gsm 7bit?
> 


Reply via email to