Re: [SHR] Setting regional codes

2009-09-02 Thread Christ van Willegen
On Wed, Sep 2, 2009 at 1:52 AM, Rui Miguel Silva Seabrar...@1407.org wrote:
 + should be an alias to 00 if at the beggining of a number. This usage of +
 is so common and international that it would be IMHO dumb to intentionally
 ignore it.

Not only that, but I intentionally store all my numbers in the +
(usually +31...) format, since not every country has 00 as its
international prefix!

If you look at http://www.kropla.com/dialcode.htm, there is a whole
list of IDD codes, and there are lots of 'em that aren't 00...

I'm looking forward to having full number recognition, since I now
regularly have to 'mentally lookup' a number when it's calling me...

Christ van Willegen
-- 
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-02 Thread Rui Miguel Silva Seabra
On Wed, Sep 02, 2009 at 08:01:48AM +0200, Christ van Willegen wrote:
 On Wed, Sep 2, 2009 at 1:52 AM, Rui Miguel Silva Seabrar...@1407.org wrote:
  + should be an alias to 00 if at the beggining of a number. This usage of +
  is so common and international that it would be IMHO dumb to intentionally
  ignore it.
 
 Not only that, but I intentionally store all my numbers in the +
 (usually +31...) format, since not every country has 00 as its
 international prefix!
 
 If you look at http://www.kropla.com/dialcode.htm, there is a whole
 list of IDD codes, and there are lots of 'em that aren't 00...

Ah... that's news for me, I thought 00 was a standard! Then + as a standard
is perfectly natural, it's a way to hide that complexity from a normal
person, then the phone must know from the country code if it's 00, 0011, etc...

Sucks... it makes it a bit confusing... for instance:

Portugal +351...
Albania  +355...

Fortunately there's no +35 so you can have a rule for +35X NUMBER

 I'm looking forward to having full number recognition, since I now
 regularly have to 'mentally lookup' a number when it's calling me...

Bah, it's good for your memory! :)

Rui

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


RE: [SHR] Setting regional codes

2009-09-02 Thread Niels Heyvaert

 + should be an alias to 00 if at the beggining of a number. This usage of +
 is so common and international that it would be IMHO dumb to intentionally
 ignore it.

 Not only that, but I intentionally store all my numbers in the +
 (usually +31...) format, since not every country has 00 as its
 international prefix!

 If you look at http://www.kropla.com/dialcode.htm, there is a whole
 list of IDD codes, and there are lots of 'em that aren't 00...

 I'm looking forward to having full number recognition, since I now
 regularly have to 'mentally lookup' a number when it's calling me...

 Christ van Willegen
 --

Adding my observations to the mix:
 
I haven't changed any of the phone settings and store all my phone numbers in 
the international format (with '+' sign). In the config file the default 
country code is set to 49, which is different from my actual country code.
 
Incomming calls and messages map very nice to the contact names.
 
I haven't received any international calls or text messages since I've started 
using SHR-U, but will keep an eye on it.
 
Niels.
_
Reageer op foto’s van je vrienden en bekijk hun reacties op de jouwe. 
Gegarandeerd hilariteit! 
http://www.microsoft.com/belux/nl/windows/windowslive/products/photos.aspx
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


RE: [SHR] Setting regional codes

2009-09-02 Thread Tilman Baumann
Sorry I missed the whole thread. Need to read it all in a free minute.
Sorry if I spam you with irrelevant stuff. But my post to dial plans and
number cannonification from last year might be interesting for you guys.

http://www.mail-archive.com/de...@lists.openmoko.org/msg00073.html

There was much discussion on that thread. But the conclusion is, if you
know your dialplan (internationalPrefix, longDistancePrefix and
countryCode) you can transform every local number into the full
international form +xxyyz

And from that, if you would like you can transform it back by applying
your dial plan. But there is of course not much need for that on cell
networks.

Regards
 Tilman

Niels Heyvaert wrote:

 + should be an alias to 00 if at the beggining of a number. This usage
 of +
 is so common and international that it would be IMHO dumb to
 intentionally
 ignore it.

 Not only that, but I intentionally store all my numbers in the +
 (usually +31...) format, since not every country has 00 as its
 international prefix!

 If you look at http://www.kropla.com/dialcode.htm, there is a whole
 list of IDD codes, and there are lots of 'em that aren't 00...

 I'm looking forward to having full number recognition, since I now
 regularly have to 'mentally lookup' a number when it's calling me...

 Christ van Willegen
 --

 Adding my observations to the mix:

 I haven't changed any of the phone settings and store all my phone numbers
 in the international format (with '+' sign). In the config file the
 default country code is set to 49, which is different from my actual
 country code.

 Incomming calls and messages map very nice to the contact names.

 I haven't received any international calls or text messages since I've
 started using SHR-U, but will keep an eye on it.

 Niels.
 _
 Reageer op foto’s van je vrienden en bekijk hun reacties op de jouwe.
 Gegarandeerd hilariteit!
 http://www.microsoft.com/belux/nl/windows/windowslive/products/photos.aspx
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community



-- 
MFG
 Tilman Baumann


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-02 Thread Sebastian Krzyszkowiak
On 9/2/09, Christ van Willegen cvwille...@gmail.com wrote:
 I'm looking forward to having full number recognition, since I now
 regularly have to 'mentally lookup' a number when it's calling me...

What do you mean? Current implementation is full and with correct
configuration supports every kind of number format (maybe except
numbers with pauses and waits to send DTMF when call establishes, but
i don't think support of that is necessary for contact resolving :P)

-- 
Sebastian Krzyszkowiak
dos

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-01 Thread Tom Yates
On Mon, 31 Aug 2009, Robin Paulson wrote:

 2009/8/31 Tom Yates madhat...@teaparty.net:
 secondly, does that not mean that a call from 01223456789 (in the UK)
 should match a contact listed as +441223456789, when the following
 settings apply?

 it works perfectly for me - i didn't put anything except a '0' in the
 area code field though

that's great news.  are you in the UK?

and if so, could you let me know a) your /etc/phone-utils.conf b) a couple 
of contacts from your address book (i don't want to know the numbers, just 
the first three or four digits so i can see what format you store them in) 
and c) confirmation that the numbers are resolved to contact names for 
incoming calls AND call log entries AND SMS messages?

Sebastian Krzyszkowiak wrote:
 International prefix is *never* +. Most probably (as in whole Europe)
 you have to set it as 00.

ok, done.  i tried both, and it didn't help.

 What is that area_code=1223? Try with area_code blanked.

that's my local area code (comparable to 179 in the wiki article i sent 
you).

i have blanked it out (though i had to edit the file by hand for 
that as the GUI won't take an empty value, saying it must be a number) but 
i still don't have perfect resolution.

at the moment:

/etc/phone-utils.conf says
[local]
international_prefix=00
national_prefix=0
country_code=44
area_code=

my first contact is now (six zeros substituted for real number)
wife0044797100

and her call log entry is right, her text messages show as coming from 
her, but her incoming calls still show up as just 0797100.

thanks to both of your for your follow-ups, hopefully you can help me get 
this 100% working!


-- 

   Tom Yates  -  http://www.teaparty.net

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-01 Thread Robin Paulson
2009/9/1 Tom Yates madhat...@teaparty.net:
 that's great news.  are you in the UK?

NZ, but it shouldn't matter

 and if so, could you let me know a) your /etc/phone-utils.conf b) a couple

[local]
international_prefix = 00
national_prefix = 0
country_code = 64
area_code = 0


 of contacts from your address book (i don't want to know the numbers, just
 the first three or four digits so i can see what format you store them in)

+447752xx (uk mobile)
+64210xxx (nz mobile)
+64210xxx (nz mobile)
0210xx (nz mobile)
04 917  (nz landline)

 and c) confirmation that the numbers are resolved to contact names for
 incoming calls AND call log entries AND SMS messages?

incoming calls: i probably make/receive one call a month, if that, so
i can't help at the moment
call log: yes
messages: yes

 Sebastian Krzyszkowiak wrote:
 International prefix is *never* +. Most probably (as in whole Europe)
 you have to set it as 00.

i wouldn't be so sure on that. mine is 00, that's for nz. it varies by country

 ok, done.  i tried both, and it didn't help.

 What is that area_code=1223? Try with area_code blanked.

 that's my local area code (comparable to 179 in the wiki article i sent
 you).

it's badly worded, it means the prefix to area codes (i.e. for vast
majority of countries, '0')

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-01 Thread Sebastian Krzyszkowiak
On 9/1/09, Tom Yates madhat...@teaparty.net wrote:
 i have blanked it out (though i had to edit the file by hand for
 that as the GUI won't take an empty value, saying it must be a number)

Oh, that's bug. Fixing it now, thanks for mentioning that ;)

-- 
Sebastian Krzyszkowiak
dos

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-01 Thread Tom Yates
On Tue, 1 Sep 2009, Robin Paulson wrote:

 NZ, but it shouldn't matter

i agree, but how the local network presents a number does seem to vary 
widely from network to network - and, indeed, application to application 
(my incoming numbers on texts are a different format than those on calls).

 incoming calls: i probably make/receive one call a month, if that, so
 i can't help at the moment
 call log: yes
 messages: yes

blast, the two i have working now are the two that you have working.  the 
one that's not working is for real-time incoming calls.  don't suppose you 
fancy calling yourself (not picking up, so hopefully no cost) from another 
phone and letting me know what happens?

sebastian, can you confirm that contact lookup on incoming calls works for 
you?


-- 

   Tom Yates  -  http://www.teaparty.net

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-01 Thread Sebastian Krzyszkowiak
On 9/1/09, Tom Yates madhat...@teaparty.net wrote:
 On Tue, 1 Sep 2009, Robin Paulson wrote:

 NZ, but it shouldn't matter

 i agree, but how the local network presents a number does seem to vary
 widely from network to network - and, indeed, application to application
 (my incoming numbers on texts are a different format than those on calls).

 incoming calls: i probably make/receive one call a month, if that, so
 i can't help at the moment
 call log: yes
 messages: yes

 blast, the two i have working now are the two that you have working.  the
 one that's not working is for real-time incoming calls.  don't suppose you
 fancy calling yourself (not picking up, so hopefully no cost) from another
 phone and letting me know what happens?

 sebastian, can you confirm that contact lookup on incoming calls works for
 you?


 --

Tom Yates  -  http://www.teaparty.net

Everything contact lockup related in SHR and opimd works for me, and I
can't see why it couldn't work with correct configuration. In case it
doesn't work for you - please send here phone number which is reported
by network, phone number in contact book and phone-utils
configuration. If not me, then i'm sure DocScrutinizer will know what
you're doing wrong ;)

-- 
Sebastian Krzyszkowiak
dos

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-01 Thread Adam Jimerson
On Tue, Sep 1, 2009 at 6:44 AM, Sebastian Krzyszkowiak
seba.d...@gmail.comwrote:

 On 9/1/09, Tom Yates madhat...@teaparty.net wrote:
  On Tue, 1 Sep 2009, Robin Paulson wrote:
 
  NZ, but it shouldn't matter
 
  i agree, but how the local network presents a number does seem to vary
  widely from network to network - and, indeed, application to application
  (my incoming numbers on texts are a different format than those on
 calls).
 
  incoming calls: i probably make/receive one call a month, if that, so
  i can't help at the moment
  call log: yes
  messages: yes
 
  blast, the two i have working now are the two that you have working.  the
  one that's not working is for real-time incoming calls.  don't suppose
 you
  fancy calling yourself (not picking up, so hopefully no cost) from
 another
  phone and letting me know what happens?
 
  sebastian, can you confirm that contact lookup on incoming calls works
 for
  you?
 
 
  --
 
 Tom Yates  -  http://www.teaparty.net

 Everything contact lockup related in SHR and opimd works for me, and I
 can't see why it couldn't work with correct configuration. In case it
 doesn't work for you - please send here phone number which is reported
 by network, phone number in contact book and phone-utils
 configuration. If not me, then i'm sure DocScrutinizer will know what
 you're doing wrong ;)


So let me see if I understand this the only thing that needs changed is the
country code right, everything else remains a 0?  As I live in the USA all I
know is that a +1 is used, everything else is unknown to me and I am having
to Google for.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-01 Thread Tom Yates
On Tue, 1 Sep 2009, Sebastian Krzyszkowiak wrote:

 Everything contact lockup related in SHR and opimd works for me, and I
 can't see why it couldn't work with correct configuration. In case it
 doesn't work for you - please send here phone number which is reported
 by network, phone number in contact book and phone-utils
 configuration. If not me, then i'm sure DocScrutinizer will know what
 you're doing wrong ;)

what can i say?  i'm an idiot, or must have screwed up one of the tests. 
now i have my contacts listed as 0044abcdefghij , they work for all three 
applications: incoming calls, incoming SMS, and call log.

thank you all for your help and persistence!


-- 

   Tom Yates  -  http://www.teaparty.net

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-09-01 Thread Rui Miguel Silva Seabra
On Tue, Sep 01, 2009 at 06:17:20PM +0100, Tom Yates wrote:
 On Tue, 1 Sep 2009, Sebastian Krzyszkowiak wrote:
 
  Everything contact lockup related in SHR and opimd works for me, and I
  can't see why it couldn't work with correct configuration. In case it
  doesn't work for you - please send here phone number which is reported
  by network, phone number in contact book and phone-utils
  configuration. If not me, then i'm sure DocScrutinizer will know what
  you're doing wrong ;)
 
 what can i say?  i'm an idiot, or must have screwed up one of the tests. 
 now i have my contacts listed as 0044abcdefghij , they work for all three 
 applications: incoming calls, incoming SMS, and call log.
 
 thank you all for your help and persistence!

+ should be an alias to 00 if at the beggining of a number. This usage of +
is so common and international that it would be IMHO dumb to intentionally
ignore it.

It would be good to store the number in a normalized format (like 00) but
present it in a consistent format to the most common usage.

In PCRE (after trimming any whitespace)...   ^(?:\+?|00)\d+$

Rui

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR] Setting regional codes

2009-08-31 Thread Sebastian Krzyszkowiak
On 8/31/09, Tom Yates madhat...@teaparty.net wrote:
 well, i've switched to SHR, and i may i first say how much it's improved
 since i last tried it - very very nice!  though i am looking forward to a
 testing branch emerging.

 the wiki at
 http://wiki.openmoko.org/wiki/SHR_User_Manual#Set_Regional_Codes suggests
 that if the regional information is set correctly in /etc/phone-utils.conf
 (or by using the settings - phone - phoneutils settings option, i take
 it) that incoming numbers will be correctly looked up.

 firstly, do others believe this is so?

 secondly, does that not mean that a call from 01223456789 (in the UK)
 should match a contact listed as +441223456789, when the following
 settings apply?

 international_prefix=00
 national_prefix=0
 country_code=44
 area_code=1223

 if not, how about
 international_prefix=+

 have i just botched a setting, or am i completely misunderstanding this?


 --

Tom Yates  -  http://www.teaparty.net

International prefix is *never* +. Most probably (as in whole Europe)
you have to set it as 00.

What is that area_code=1223? Try with area_code blanked.

-- 
Sebastian Krzyszkowiak
dos

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community