sms concatenation solution
"Jeetendra Singh" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <079301c44e1b$8a1fcd40$9d36a8c0@js> |
Hi, This function doesn't work correctly, if the "source" string contains (8n + 1) characters. (n=0,1,12,3,4...) It appends an extra octet 0x00 at the end of generated string. regards, Jeetendra. ------------------------- 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