> -----Original Message-----
> From: Alan McNatty [mailto:alan@;catalyst.net.nz]
> 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

Reply via email to