buggnokii - Bugs: bug #31432, Problem decoding alphanumeric...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31432: Problem decoding alphanumeric sender address SMS

Submitter:  Alex <alex24>
Submitted:  Sun 24 Oct 2010 12:05:31 PM UTC
   
 
Category:  gnokii Severity:  3 - Normal
Item Group:  minor malfunction Status:  Ready For Test
Privacy:  Public Assigned to:  pkot
Open/Closed:  Open

Thu 27 Jan 2011 08:59:38 AM UTC, comment #1: 

First, the issue should be addressed within current GIT version. Can you please check?

Second, I think alphanumeric cannot be ISDN numbering scheme. I mean there is no constraint in the spec, but it just doesn't make sense.

Pawel Kot <pkot>
Group administrator
Sun 24 Oct 2010 12:05:31 PM UTC, original submission:  

I had a couple of problems decoding alphanumeric sender addresses for received SMS's.  It was in gsm-encoding.c in char_bcd_number_get:

 - The Type of address value (0xd1) was not recognised (i.e. alphanumeric + ISDN)

 - The length passed to char_7bit_unpack was 1 byte too large

Here is my hack to fix it, but the 0xd1 needs to be added to the list of types I guess:

1104,1105c1104,1106
< char_7bit_unpack(0, length, length, number + 2, buffer);
< buffer[length] = 0;
---

> case 0xd1:
> char_7bit_unpack(0, length - 1, length, number + 2, buffer);
> buffer[length - 1] = 0;



I am using gnokii 0.6.28 but it seems to be there on git also.

I am reading the SIM using a card reader:

[global]
model = APDU
connection = libpcsclite
port=0


[logging]
debug = on
rlpdebug = off
#xdebug = on


The SIM is for the Spanish Orange network.  Telephone is a Sony Ericsson T250i.


Alex <alex24>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pkot (Posted a comment)
  • -email is unavailable- added by alex24 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-27 pkot StatusNone Ready For Test
        Assigned toNone pkot

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code