Re: data_encoding calculate in latest CVS

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
On Thursday 11 September 2003 14:06, Yury Mikhienko wrote:
> > Hi,
> >
> > please note: values for the mclass/coding were changed. Please use values
> > in the range: coding[0-2], mclass[0-3].
>
> From latest version and above?

it's in cvs only and will be in upcomming 1.3.2 ...

>
> > Bruno, would you like to update the usergiude to reflect changes made by
> > you?
> >
> > > In last CVS version of kannel data_coding field in PDU wrong
> > > calculating
> > >
> > > For example, I set the following headers
> > >    if(!response.containsHeader("X-Kannel-Coding"))
> > >    {
> > >     response.addHeader("X-Kannel-Coding",new String("2"));
> > >    }else
> > >    {
> > >     response.setHeader("X-Kannel-Coding",new String("2"));
> > >    };
> >
> > is it really UCS2 ?
>
> No, but I think about the following (from kannel coding note):
> 0 - Default
> 1 - 7bit
> 2 - 8bit
> 3 - UCS2

the usergiude is not updated yet...
the values are (look in gw/sms.h):
#define DC_7BIT   0
#define DC_8BIT   1
#define DC_UCS2   2


>
> but in SMPP Protocol Specification v3.4 notice the following
>
> 00000000 SMSC Default Alphabet
> 00000001 IA5
> 00000010 Octet unspecifed (8-bit binary)
> 00000011 Latin1 (ISO-8859-1)
> ...
> 00001000 UCS2
>
> > >    if(!response.containsHeader("X-Kannel-MClass"))
> > >    {
> > >     response.addHeader("X-Kannel-MClass","1");
> > >    }else
> > >    {
> > >     response.setHeader("X-Kannel-MClass","1");
> > >    };
> >
> > do you really want mclass = FAX ?

oops, my fault, I thought, mwi :)

>
> What you mean?
> I want get the flash SMS

it's mclass=0 now ...

Good luck!

-- 
Best regards / Mit besten Grüßen aus Düsseldorf

Dipl.-Ing.
Alexander Malysh
___________________________________________

Centrium GmbH
Vogelsanger Weg 80
40470 Düsseldorf

Fon: +49 (0211) 74 84 51 80
Fax: +49 (0211) 277 49 109

email: a.malysh at centrium.de
web: www.centrium.de
msn: olek2002 at hotmail.com
icq: 98063111
___________________________________________

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
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.