Official Debian port with FSO

Bruce Adams bruce.adams at acm.org
Fri Aug 22 17:32:24 CEST 2008


In 'phonebookTupleToNumber' in 'const.py' I changed the 'assert' to just 
spit out a message, like this:

    # assert ntype in ( 129, 145, 185, 208 ), "unknown type %i" % ntype
    if not ntype in ( 129, 145, 185, 208 ):
        print "unknown type %i for %s" % ( ntype, str(nstring) )

This is the output I saw:

unknown type 255 for #225#
unknown type 255 for #646#
unknown type 255 for #674#

T-Mobile (USA) had pre-programmed these three phone numbers into the SIM 
card, then I made duplicates (by way of a confusing UI on a Samsung 
phone). I don't know if the originals or my duplicates had the unknown type.

Is there a more formal place I should report this?

- Bruce

P.S. I now have FSO/zhone working under Debian on my FreeRunner!

Joachim Breitner wrote:
> Hi,
>
> Am Samstag, den 16.08.2008, 18:07 -0400 schrieb xaos x:
>   
>> That worked for outgoing calls. I'm still receiving the following upon incoming calls:
>>
>> Traceback (most recent call last):
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/channel.py", line 218, in _readyToRead
>>     self.readyToRead( data )
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/channel.py", line 354, in readyToRead
>>     self.parser.feed( data, not self.q.empty() )
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/parser.py", line 127, in feed
>>     nextstate = self.state( b, haveCommand )
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/parser.py", line 177, in state_inline_r
>>     return self.unsolicitedLineCompleted()
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/parser.py", line 237, in unsolicitedLineCompleted
>>     self.unsolicited( self.lines )
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/decor.py", line 45, in logIt
>>     result = fn( *args, **kwargs )
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/channel.py", line 526, in _handleUnsolicitedResponse
>>     method( values.strip() )
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/modems/ti_calypso/unsolicited.py", line 128, in percentCPI
>>     info["peer"] = const.phonebookTupleToNumber( number[1:-1], int(ntype) )
>>   File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/const.py", line 805, in phonebookTupleToNumber
>>     assert ntype in ( 129, 145, 185, 208 ), "unknown type %i" % ntype
>> AssertionError: unknown type 161
>>     
>
> The FSO stack does not yet know and support all possible number types.
> The 185 was recently added by me after a similar error...
>
> Please do the following:
>  * Check if that error also happens when you open the phonebook
>  * Add the 161 to the list of numbers in const.py
>  * Find out what number was causing this (e.g. by adding "print"
> statements around the above line outputting the number) and tell us
> about it.
>
> Thanks,
> Joachim
>   



More information about the support mailing list