Closed
Bug 815091
Opened 13 years ago
Closed 12 years ago
Support for international prefixes
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Firefox OS Graveyard
Gaia::Dialer
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: baku, Assigned: baku)
Details
Attachments
(1 file, 2 obsolete files)
|
14.75 KB,
patch
|
baku
:
review+
fabrice
:
approval-gaia-v1+
|
Details | Diff | Splinter Review |
Currently only france, brazil, UK, US are supported.
I wrote a patch that adds any international prefix: https://en.wikipedia.org/wiki/Country_calling_code
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #685096 -
Flags: review?(etienne)
Comment 2•13 years ago
|
||
Comment on attachment 685096 [details] [diff] [review]
patch
Review of attachment 685096 [details] [diff] [review]:
-----------------------------------------------------------------
We could maybe have a "grab bag path" with all the prefixes but I'd like to keep the proper trunk code support when we have the data (and not generate extra variants).
But the main issue is: we should check to see if the international numbers support is going to be handled by the platform for the Dialer too (it is for the SMS app).
::: shared/js/simple_phone_matcher.js
@@ +86,5 @@
> _mccWith00Prefix: ['208', '214', '234', '235', '724'],
> _mccWith011Prefix: ['310', '311', '312', '313', '314', '315', '316'],
>
> + // https://en.wikipedia.org/wiki/Country_calling_code
> + _countryPrefixes: [
The issue is, we're loosing the Trunk Code support here which will cause extra variants to be generated which can cause false matches...
Attachment #685096 -
Flags: review?(etienne) → review-
Comment 3•13 years ago
|
||
Gregor do you know about the telephony API doing international numbers stuffs?
Flags: needinfo?(anygregor)
| Assignee | ||
Comment 4•13 years ago
|
||
Maybe we can have: _countryPrefixes: [ { p: 44, tc: false },...
so we can change the trunk code variant only if needed.
Comment 5•13 years ago
|
||
(In reply to Andrea Marchesini (:baku) from comment #4)
> Maybe we can have: _countryPrefixes: [ { p: 44, tc: false },...
> so we can change the trunk code variant only if needed.
I like this idea :)
| Assignee | ||
Comment 6•13 years ago
|
||
Attachment #685096 -
Attachment is obsolete: true
Attachment #685151 -
Flags: review?(etienne)
Comment 7•13 years ago
|
||
We should have all this in https://hg.mozilla.org/mozilla-central/file/597915b66059/dom/phonenumberutils
But we have to connect it.
Flags: needinfo?(anygregor)
| Assignee | ||
Comment 8•13 years ago
|
||
Gregor, do we have any plan to connect this phone number module?
Is this a public API?
Comment 9•13 years ago
|
||
Comment on attachment 685151 [details] [diff] [review]
patch b
Review of attachment 685151 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the comment explaining the structure added
::: shared/js/simple_phone_matcher.js
@@ +86,4 @@
> _mccWith00Prefix: ['208', '214', '234', '235', '724'],
> _mccWith011Prefix: ['310', '311', '312', '313', '314', '315', '316'],
>
> + // https://en.wikipedia.org/wiki/Country_calling_code
Please add a comment explaining the format of the |_countryPrefixes| array and mentioning https://en.wikipedia.org/wiki/Trunk_code
Attachment #685151 -
Flags: review?(etienne) → review+
| Assignee | ||
Comment 10•13 years ago
|
||
I sent a pulll request: https://github.com/mozilla-b2g/gaia/pull/6678
Attachment #685151 -
Attachment is obsolete: true
Attachment #686054 -
Flags: review+
| Assignee | ||
Comment 11•13 years ago
|
||
Comment on attachment 686054 [details] [diff] [review]
patch c
NOTE: If blocking-basecamp+ is set, just land it for now.
[Approval Request Comment]
User impact if declined: Right now, the international phone numbers are not associated with contacts.
Risk to taking this patch (and alternatives if risky): I don't see any risk.
Attachment #686054 -
Flags: approval-gaia-master?(fabrice)
| Assignee | ||
Comment 12•13 years ago
|
||
Fabrice, can you take a look at this?
Updated•13 years ago
|
Attachment #686054 -
Flags: approval-gaia-master?(fabrice) → approval-gaia-master+
| Assignee | ||
Comment 13•12 years ago
|
||
Keywords: checkin-needed
Updated•12 years ago
|
Assignee: nobody → amarchesini
Keywords: checkin-needed
Comment 14•12 years ago
|
||
Can someone merge this please? It seems to be approved and ready to land as far as I can tell.
Comment 15•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•