Hello,

I would like to request support for Toll Free numbers. I tried using countries that have +1 country code but I couldn't get pass through validation.

Let me know if you have any work arounds for this or if this will be supported in the future. Thanks!

Comments

ckng’s picture

Have thought of supporting toll-free number, however, could not think of a straight forward solution. If you read http://en.wikipedia.org/wiki/Toll-free_telephone_number, toll-free numbers are specific to each country. For example, a Sweden Toll-free number starts 020 and an Ireland or Thailand Toll-free number would start with 1800-xxxxxx, China start with both 800-xxxxxx and 400-xxxxxx.

Looking at our UI, the easiest would be to double the listing by having "(+CC) Country" and "Toll-free Country" per country. Not sure that is what we want as that would create a huge list of ~478 country code + toll-free, not really a nice user experience having to scroll through such long list.
Or listing out all toll-free, e.g. "(+86) China", "800 Toll-free China", "400 Toll-free China"?

BTW, does all countries have toll-free number, the list in Wikipedia seems small.

Would like to get input and suggestion how to best implement this or know of a good existing UI. Feel free to chip in your thoughts.

Tebb’s picture

Yes, nearly 500 entries is a bit of a monster.

I'm just going to try this in D7, so have no experience of it yet, but thought I'd try to help.

Is there any mileage in grouping country codes by continent or first letter or using Heirarchical Select (http://drupal.org/project/hierarchical_select) which is partially ported to D7.

Not sure how any of that would work with multilingual sites or non javascript environments.

Perhaps also you could make including the toll free numbers in the list optional, for those that really need them?

efrenefren’s picture

or we can add Custom Code to the list of country codes where can put in any code we want?

ckng’s picture

I'm afraid HS does not fit our current use case, as we only has a flat list without hierarchy. Grouping by continent only can help so much. If not mistaken, majority of people are using only a handful of country codes. So HS could complicate the UI for them.

Do not favors first letter and autocomplete as well, as people's perception on country names may vary, e.g. US, United States, America

It seems that custom number is the current best proposal, but take notes that we need
- a standard way to name the custom code
- to avoid conflict with existing country codes and even future code
- to support multiple custom numbers (toll-free)
- custom validation - the length need to be supplied?

Patches welcome =)

kevin59’s picture

Toll free numbers are different for every country, it will be better for you to search on net by using “custom toll free” search term.
get toll free number

g1smd’s picture

I'm the UK metadata editor for the Google libphonenumber project over at:
http://code.google.com/p/libphonenumber/
The xml metadata file there has number length, validation and formatting information as well as an example number for each number type in each country.

http://libphonenumber.googlecode.com/svn/trunk/resources/PhoneNumberMeta...
Perhaps you could use this data for toll free numbers here?

lampardtroy’s picture

Every country has a different unique code. In toll free numbers there are some limitations about country wise . In some countries there are no bounds on international calling. Custom toll free