[SHR] Phonelog and hidden caller ids

Klaus 'mrmoku' Kurzmann mok at mnet-online.de
Mon Mar 9 20:41:27 CET 2009


Am Montag 09 März 2009 20:24:30 schrieb Natanael:
> Xavier Cremaschi wrote:
> > Hi folks,
> > phonelog crashes as soon as someone calls me from a phone with hidden
> > caller id.
> >
> > There is a simple problem in /usr/bin/phonelog : the output of the error
> > message fails because of a problem of python string and int
> > concatenation. It seems easy to fix, by replacing :
> >      print "foo" + call + "bar"
> > by
> >      print "foo %d bar" % call
> > (never done anything in python, so not sure)
> >
> > But, by reading the code, it seems that phonelog will just output a
> > message saying "hey dude, delete call from database and relaunch", so
> > does anybody has or is able to modify phonelog to handle this kind of
> > caller-without-id ?
> >
> > Btw db still grows, so even if the app cannot be launched the FR still
> > logs calls.
> >
> > Xavier Cremaschi.
>
> Hey Xavier,
> this is a realy bad problem.
> Here i found some lines handling Unknown Numbers,
>
> from line 367:
>                         #don't group supressed numbers
>                         #and make the contact Unknown Number
>                         if number == "*****":
>                                 last_parent_added = None
>                                 contact = config.get("suppressed_name")
>
> but on my phone Unknown Numbers are "�@-�" and I get the output:
> "sqlite3.OperationalError: Could not decode to UTF-8 column 'number' with
> text '�@-�'"
what version of SHR (or more specifically ophonekitd) are you using? Must be 
rather old... This was fixed long time ago.

Klaus 'mrmoku' Kurzmann





More information about the community mailing list