sms concatenation solution

"Sasko Celakovski" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,

 

I had this problem with concatenated messages not being 7-bit encoded. The
message was send from Kannel to the SMSC as 8 bit (data_coding set to SMSC
Default Alphabet) and it was messed up (by the SMSC) when delivered to the
phone. 

 

I have found one solution to this problem. There is a function that encodes
Octstr to 7-bit Octstr (according to the GSM 03.38) in smsc_at.c file of the
Kannels snapshot version: 

 

Octstr* at2_encode7bituncompressed(Octstr *source, int offset)

 

In the smsc_smpp.c file I've changes the msg_to_pdu function to encode the
data if there is a UDH and if the coding is set to SMSC default alphabet
(I'm using Kannel 1.3.1). 

 

This works fine in my setup, but it might not cover all of the possible
scenarios. Please send your coments.

 

Regards,

Sasko


COSMOFON - Mobile Telecommunications Services - A.D. Skopje
_______________________________________________________________
This  e-mail  (including   any   attachments) is   confidential and  may  be protected  by  legal  privilege.  If  you are not the intended recipient, you should not copy it, re-transmit it, use  it  or  disclose its contents, but should return it to the sender  immediately  and delete  your  copy from your system. Any unauthorized  use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible  to change. COSMOFON A.D. Skopje shall not be liable  for  the improper or  incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system.
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.