RE: SMPP: data_coding (deliver_sm)

Alan McNatty <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <1036027075.32602.723.camel@euclid>
On Thu, 2002-10-31 at 00:15, Oded Arbel wrote:
> 
> > -----Original Message-----
> > From: Alan McNatty [mailto:[email protected]]
> 
> > > and how do you know that the last char is a null ? I don't 
> > think it is.
> > Just a guess - I have \0 at the end of each message comming through
> > without doing the ocstr_truncate on last char. Or does this sound like
> > smsc weirdness?
> 
> Yes.. :-/ actually it does.

The null character is apparently optional and can go away easily so
that's not a problem. The subsequent sms push problem I was having was a
user issued involving experimental coding parameters ...

Oded, are you suggesting that gsm_to_latin1 conversion take place only
when data_coding == 0x01 or when != 0x01 (Am I readin the specs wrong or
0x01 Ascii?). ie:


     if (  pdu->u.deliver_sm.data_coding == 0x01 )
       charset_gsm_to_latin1(msg->sms.msgdata);
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.