Re: SMPP 3.4 C-Octet String Termination

Andreas Fink <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Mittwoch, Februar 26, 2003, at 03:52  Uhr, Alex Judd wrote:

> We're working with a SMPP 3.4 server that validly (according to the 3.4
> specs) terminates the C-Octet Strings it sends us with a NULL 
> character.
> This currently isn't handled directly by Kannel and ends up as an extra
> character on the message content.
>
> For example a message of AAA, length 3, now arrives at Kannel as AAA@,
> length 4 [which is obviously wrong]
>
> I've made a short term workaround to remove the character by using the
> octstr_strip_nonalphanums on the msg-sms.msgdata however I'm 
> interested in
> whether everyone thinks Kannel should strip off this null character 
> (like I
> do) or whether this should occur at application level?
>


I think kannel should respect the length.
So a single octstr_trim(packet,len) should do the trick I guess.


Andreas Fink
Global Networks Switzerland AG

------------------------------------------------------------------
Tel: +41-61-6666333  Fax: +41-61-6666334   Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/      [email protected]
------------------------------------------------------------------
Member of the GSM Association
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.