RE: SMPP: data_coding (deliver_sm)

"Oded Arbel" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
> -----Original Message-----
> From: Alan McNatty [mailto:[email protected]]
> Sent: Wednesday, October 30, 2002 1:59 AM
> To: Kannel Dev
> Subject: RE: SMPP: data_coding (deliver_sm)

> Index: gw/smsc/smsc_smpp.c
> ===================================================================
> RCS file: /home/cvs/gateway/gw/smsc/smsc_smpp.c,v
> retrieving revision 1.14
> diff -r1.14 smsc_smpp.c
> 239c239,244
> <     charset_gsm_to_latin1(msg->sms.msgdata); 
> ---
> > 
> >     if (  pdu->u.deliver_sm.data_coding == 0x00 )
> >       octstr_truncate(msg->sms.msgdata, 
> octstr_len(msg->sms.msgdata) -
> 1);
> >     else
> >       charset_gsm_to_latin1(msg->sms.msgdata); 

You of course mean to say data_coding != 0x01, right ?
and how do you know that the last char is a null ? I don't think it is.

--
Oded Arbel
m-Wise mobile solutions
[email protected]

+972-9-9581711 (116)
+972-67-340014

::..
"We learn from history that we learn nothing from history."
-- George Bernard Shaw
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.