Re: SMPP 7bit ASCII pack to 8bit words
Andreas Fink <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
I think you are doing something wrong here. The DCS value is saying if the data is 7bit or 8bit. When you deliver data to a SMPP SMSC you always send it in 8bit. So you never have to pack anything. You simply supply the 7bit values (gsm character set) into bytes. The SMSC then will pack them. Some operators, especially in eastern europe use 8bit values to allow 140 characters instead of only 70 unicode characters. Some SMSC's even translate them on the fly. On 14.09.2006, at 10:52, Konstantin Kolomiychuk wrote: > Hi, ALL. > > I don't find the _subject_ function in v1.4.0 > But many Mobile Operators use the _subject_ for translate 160 > characters SMS to the mobile phones. > I have realized this function, test it and wide use it now. > I have modify the source code of the some gwlib and gw/smsc files. > > If any body wonna implement this function for own use or in new kannel > version - you are welcome :) > I have implemented this function in my kannel 1.4.0 not a good, but > it's worked. > Andreas Fink Fink Consulting GmbH --------------------------------------------------------------- Tel: +41-61-6666332 Fax: +41-61-6666331 Mobile: +41-79-2457333 Address: Clarastrasse 3, 4058 Basel, Switzerland E-Mail: [email protected] Homepage: http://www.finkconsulting.com --------------------------------------------------------------- ICQ: 8239353 MSN: [email protected] AIM: smsrelay Skype: andreasfink Yahoo: finkconsulting SMS: +41792457333