Posted by Will White on November 7, 2008 at 11:03pm
Jump to:
| Project: | SMS Framework |
| Version: | 6.x-2.x-dev |
| Component: | New module or gateway |
| Category: | feature request |
| Priority: | normal |
| Assigned: | aspope |
| Status: | needs review |
| Issue tags: | international |
Issue Summary
This module will be used by gateway modules to validate international numbers that users input. It should provide a CRUD interface that allows admins to add, remove, edit, enable, and disable individual countries.
Right now users must enter their full international phone number and select their country. We validate the number they provided against the format for the country they provided. Other sites like Twitter don’t have this country drop down. They only ask for a number. We’d like to do this as well.
Comments
#1
Will, are you thinking that number validation could be done based on the user's current country? (as reported by Country Code module or similar).
So, it would take numbers like "+447712123123", "00447712123123", "07712123123", "7712123123" and try to format them correctly using some common logic and some country-specific rules.
#2
What's the current status/plans for international number validation? I saw that sms_international module was added and then removed.
#3
Hi mfb,
The sms_international module still exists in the 2.0 branch. Completing a plan for this module and executing it should eliminate several issues and points of confusion with international number handling.
#4
The function sms_formatter kills a lot of New Zealand numbers when it returns FALSE if the number is < 9. I needed to change this to < 7 to work for me. Also, by returning FALSE, it merely kills the number (the number that is then sent is just the country code).
#5
It seems to me that international number validation didn't really worth the work needed.
Isn't sufficient to ask the user to insert the number without international prefix and select the country?
The user should know what it is typing and the module will easily add the country code based on the selected country.
#6
Hello,
Thanks for the great module! I have a related issue/question: how can I bulk-sms to users in different countries? The current setup I have for bulk-sms uses a view, and you still have to pick a single country which makes it impossible to bulk-sms to an international list. Is there a simple way around this? Thanks a lot.
#7
@momardieng
If you store numbers as starting with country-code, you could use my just released patch http://drupal.org/node/674896 and SMSBulk to do this.
Create a view and filter the mobile number on the leading 2 or 3 characters (that should be the country code)
#8
Hi all,
Please checkout the current 6.x-1.x-dev release that includes the sms_valid module.
This number Validation module allows you to configure prefixes that can be allowed or denied. You can arrange these "rulesets" by country or whatever you wish.
Please give it a try and post some feedback. Cheers!
#9
I am trying to get SMS working for Guatemalan mobile numbers. I was able to navigate the Validation module pretty easily (especially after installing the services modules), and validated a sample number.
Now, I would like to formally test the number on an actual Guatemalan phone (from the US). It seems that I need to now use the Devel module to test out the number. Where I am confused is when I select the carrier. I selected my country, but the carrier menu still reflects American carriers. Is there somewhere that I should enter the three Guatemalan carriers?
Thanks a ton for your hard work. I'll be so excited *when* I get this working!
Laura
#10
#11
I cannot find any form in administration menu to setup validation for international numbers (e.g. Slovakia, Czech rep...).
Thera are 3-digits international (country) code and 9-digits local numbers (without leading zero). I tried to fix it manually in DB in the "sms_international" table by the example from default existing rows (es, gb, us), but it does not work. When I am entering 9-digits number (without leading zero) and selecting Slovakia from the option box, there is still error message: "Please enter a valid phone number". It still expects 10-digits local number. When I put there any 10-digits number (with leading zero) it works correctly. But it does not work when I am trying to enter my mobile number during the new user registration. My mobile data are written into the table "users" only, not into the table "sms_user", where the confirmation routine expects it. It means the confirmation code is not sent to me to confirm my mobile number.
My gateway is Clickatell Please help!
#12