contacts: lookup on incoming call

roguemoko at roguewrt.org roguemoko at roguewrt.org
Sun Aug 31 09:33:00 CEST 2008


Rui Miguel Silva Seabra wrote:
> On Fri, Aug 29, 2008 at 01:46:48PM +0100, Tom Yates wrote:
>   
>> using ASU (specifically, 20080826-asu-stable-uImage.bin and
>> 20080827-asu-stable-rootfs.jffs2) i have a contacts database full of 
>> friends, imported via vcard, in which almost all the phone numbers are in 
>> internationally-qualified form (eg fred friend, +44 7971 123456).  that 
>> way, i can dial them whatever country i happen to be in.
>>
>> but when i'm in the UK, and a UK call comes in, it shows up as just having 
>> a local number (eg 07971 123456).
>>
>> these two numbers are functionally the same, but the contacts-lookup that 
>> happens won't identify the caller as fred friend unless i edit the 
>> contacts entry to say 07971... rather than +447971... .
>>     
>
> Simple matching algorithm: match from right to left to numbers on
> agenda.
>
> Rui
>   

Prepend call notification with 'likely to be ...' in the case of 
anything but an exact match.

I think it's best to keep it realistic, in that we can only match what 
we know. Unless you can harvest a country code from the network 
registration to figure out the prefix of numbers displayed in a 'local' 
format.

I'm on the Vodafone network too and store all my numbers in 
international, so don't actually have the problem but I've seen it on 
plenty of other providers.

I guess the only assumption you could really make is that anything 
without a prefix is local ... and therefore should be matched to the 
prefix of the registered network ... or user configurable? A basic 
configurable regex maybe ... so as not to exclude people who get odd 
local prefixes ... though there's probably a limited set that get 
applied globally.

Sarton




More information about the community mailing list