machtudong / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 0 forks source link

Decode SMS PDU with User Data Header #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Receive SMS with UDHI  User Data Header Indicator Parameter indicating that 
the UD field contains a header
2. Header length is not multiple of 7
3. Message body in 7bit GSM alphabet starts with an offset

What is the expected output? What do you see instead?
Expected message body, got scrambled message.

What version of the product are you using? On what operating system?
Asterisk 1.8 Fedora 15 x64.

Please provide any additional information below.
Function pdu_parse() in pdu.c should not skip UDH, it should instead pass value 
of udhl to functions str_recode() and exstr_7bit_to_char() in char_conv.c, and 
header length should be skipped after 8b to 7b conversion and descrambling, not 
before.

Original issue reported on code.google.com by nenad.kl...@gmail.com on 4 Nov 2011 at 12:19