Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 17, 2015
  1. Merge pull request #265 from Uelb/master

    authored
    Better national format for Martinique, Guadeloupe, and Reunion Islands
  2. @Uelb

    Better national format for Martinique, Guadeloupe, and Reunion Islands

    Uelb authored
    People from those French territories usually split phone numbers saying
    4,2,2,2 (for 0590112233 => 0590 11 22 33).
  3. @baxter
Commits on Jun 18, 2015
Commits on May 22, 2015
  1. Define NANP uses parentheses.

    authored
Commits on May 9, 2015
  1. @kvzb
Commits on Apr 27, 2015
  1. @sconstantinides

    bug fix

    sconstantinides authored
  2. @sconstantinides
Commits on Apr 25, 2015
  1. @sconstantinides
Commits on Apr 21, 2015
Commits on Apr 15, 2015
  1. @tpena

    [Côte d'Ivoire]: Fixed parsing of mobile numbers and fixed splitting …

    tpena authored
    …to reflect ITU specification
    
    References:
    [0] ITU
        http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000310001PDFE.pdf
    [1] Telephone numbers in Ivory Coast
        http://en.wikipedia.org/wiki/Telephone_numbers_in_Ivory_Coast
    
    Fixes:
    The Ivory Coast numbers do not have a trunk code leading to the situation that valid numbers such as '22507123456' would be normalized as '2257123456'. Furthermore, if you look at the
    allocation of both landline and mobile numbers given in both [0] and [1], the area code is fixed to 2 digits. In the case of landlines, the ITU spec will list out 3 digit area codes
    but this is only because they are making the separation based on telecom provider as well. That is, the 3rd digit of the national subscriber number signifies the network operator. But viewing
    it from the zones listed in the "Usage of E.164 number" column, it is clear that the zones are allocated 2-digits. This also matches up with the information in [1] as well as the way the
    numbers are formatted in [0]
    
    Côte d'Ivoire
    Tel: +225 20 34 43 74
    Fax: +225 20 34 43 75
    URL: www.artci.ci
    
    As a result, the parsing of Ivory Coast numbers will split the NSN into 4 2-digit numbers. Furthermore, we need to set the trunk code to an empty string to prevent it from being removed
    during normalization (similar to how it is done for Italy)
Commits on Apr 9, 2015
  1. @tpena

    [Nigeria Mobile Support]: Fixed parsing of Nigerian mobile numbers

    tpena authored
    References:
    [1] Mobile Telephony Number Allocation (Nigerian Communications Commission)
        http://www.ncc.gov.ng/index.php?option=com_content&view=article&id=113&Itemid=102
    [2] National Numbering Plan (Nigerian Communications Commission)
        http://www.ncc.gov.ng/index.php?option=com_docman&task=doc_download&gid=92&Itemid=
    [3] Telephone numbers in Nigeria (Wiki)
        http://en.wikipedia.org/wiki/Telephone_numbers_in_Nigeria
    [4] ITU Nigeria
        http://www.itu.int/dms_pub/itu-t/oth/02/02/T020200009C0001PDFE.pdf
    
    According to the aforementioned references, the area codes for GSM numbers are 3 digits long with the subscriber part having 7 digits. This means the previous match rule
    match(/^(702\d)\d+$/)    >> split(3,4) was incorrect as this would allow an 11-digit national number which is not given by any of the specifications. Also, the ranges
    700-709, 800-809, 810-819, and 900-909 have been allocated for mobile numbers as outlined in [1].
    
    Fixed up parsing of mobile numbers according to the [1] and extended both the plausibility specs as well as the country specs
Commits on Mar 26, 2015
  1. @pmor
Commits on Mar 17, 2015
  1. @artmees
  2. @artmees

    Fix the rest of Egyptians numbers (for all provinces except Cairo)

    artmees authored
    it's 7 numbers after the area code not 8
    Only Cairo/Giza/Qalubiya (+20 2) is 8 Charachters
  3. @artmees
Commits on Mar 7, 2015
  1. 2.12.2

    authored
Commits on Mar 6, 2015
  1. Restrict NANP NDCs.

    authored
  2. @nbrookie
Commits on Feb 27, 2015
  1. @krukgit
Commits on Feb 25, 2015
  1. @mmln
Commits on Feb 18, 2015
  1. @tomeric
Commits on Jan 27, 2015
  1. @ypelud
Commits on Dec 16, 2014
  1. @spectator
Commits on Dec 13, 2014
  1. @gpmatias

    Fixed Portuguese service and fixed NDC's.

    gpmatias authored
    Added support for 7XX and 8XX numbers, as they are currently supported in Portugal.
    3-digit NDC's should be split into 3,3 parts and not 3,4 parts (all Portuguese numbers are currently 9-digits long).
Commits on Dec 4, 2014
  1. @tpena

    Extended parsing for Mexixan numbers to take into account that a cell…

    tpena authored
    … phone dialed from abroad as a '1' right after the country code. Also fixed up the splitting of numbers into 3-4 or 4-4 groups since this is what seems to be used according to the links below
    
    
    http://en.wikipedia.org/wiki/Telephone_numbers_in_Mexico
    http://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers#Mexico
Commits on Dec 2, 2014
  1. Merge pull request #204 from tpena/enhancement/Estonian-mobile-numbers

    authored
    Extended Estonia number parsing to accept mobile numbers in the 5xx rang...
Commits on Nov 28, 2014
  1. @tpena

    Extended Estonia number parsing to accept mobile numbers in the 5xx r…

    tpena authored
    …ange to have a length of 7 or 8.
    
    The ITU document on Estonia, http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000430001PDFE.pdf, indicates on
    page 4 that the number range 50-59 contains 8 digits, however, if you look at http://en.wikipedia.org/wiki/Telephone_numbers_in_Estonia
    and https://www.numberingplans.com/?page=plans&sub=phonenr&alpha_2_input=EE&current_page=69, it appears that this is not
    entirely correct. the 5xx range can be either 7 or 8 digits long and this is something that we are also seeing with some of our
    clients.
    
    Now to be fair to the ITU document, as an additional remark, it states the following.
    
    "Differences in § 19 section 1 of the “Estonian Numbering Plan” Regulation, Mobile telephone service"
    
    I am not sure what other document this is referring to as the § 19 section 1 is not part of the one pointed to by the aforementioned link.
    In either case, given the other sources of information along with some of our clients, it seems that the 7/8 digit is something that
    needs to be taken into account.
  2. @tpena

    Adapted Slovenian rule matching based on ITU and Twiki info

    tpena authored
    Page 1 of the ITU document http://www.itu.int/oth/default.aspx?lang=en&parent=T02020000BE indicates the
    possible structures of the National (Significant) Numbers. We used this information, with the focus on
    mobile numbers, to fix up the parsing rules. Furthermore, the maximum length of the NSN is 8 digits whic
    meant that the previous parsing rule (fixed(2) >> split(3, 2, 2)) would not return the correct plausibility
    results for valid numbers.
    
    Added plausibility as well as formatting specs.
  3. @tpena

    Use a 3,4 split for Greek mobile numbers

    tpena authored
    - according to http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000550001MSWE.doc, the formatting for mobile numbers
      follows a 3,4 split. e.g. +30 693 XXX XXXX
    - this is also how mobile numbers are listed in the Non-geographic numbers section of the wiki http://en.wikipedia.org/wiki/Telephone_numbers_in_Greece
Commits on Nov 20, 2014
  1. @Emily
Commits on Nov 9, 2014
Commits on Oct 31, 2014
Commits on Oct 27, 2014
  1. Add space to NANP trunk code.

    authored
Something went wrong with that request. Please try again.