[sr-dev] [kamailio/kamailio] Smsops 7bit support special chars (#2756)
riccardv
notifications at github.com
Sat Jun 5 00:41:28 CEST 2021
Hi @alexyosifov ,
a little comment regarding the fill bits, it's just for information.
There is a more easy way to perform decoding and encoding of 7bit concatenated sms.
Let me explain
3GPP has added the fill bits for retro compatibility with old devices that doesn't support the concatenated sms and then the UDH header.
With this assumption the decoding of entire PDU may be done with the effect of first N ASCII characters (due to udh header) are not valid but the rest is ok. So it's possible to decode the entire user-data pdu as a normal non udh pdu discarding the first N decoded ASCII string.
N is equal to the septet of udh header + 1
In encoding the concept is the same, just add N preamble (3GPP recommends N '\n') characters to the ASCII string, encode as 7bit and overwrite the initial octets with the UDH header.
Hope my comment was useful
Regards
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2756#issuecomment-855064337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210604/002f59dd/attachment.htm>
More information about the sr-dev
mailing list