[Koha-bugs] [Bug 26285] New: Use country code + number (E.164) validation for SMS numbers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 24 02:49:51 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26285

            Bug ID: 26285
           Summary: Use country code + number (E.164) validation for SMS
                    numbers
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

According to the E.164 standard, a phone number must be a maximum of 12 digits
plus a 1-3 digit country code for a maximum of 15 digits. 

For North America, that would look like +1 306 555 5555 (11 total digits) or
306 555 5555 (10 digits).

For Australian phone numbers, that looks like +61 2 5555 5555 (11 total digits)
or 02 5555 5555 (10 digits).

Unfortunately, since Bug 22594, Australian phone numbers without a country code
aren't validating because they start with a 0. 


Further reading:
https://en.wikipedia.org/wiki/E.164
https://www.itu.int/rec/T-REC-E.164/
https://en.wikipedia.org/wiki/List_of_country_calling_codes

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list