IOException when using international access code (+) for sending SMS
I have the following code :
If _receiver contains a phone number with country code and (+) for international access code like +40744333222 the message is not sent and IOException is raised.
If _receiver contains a phone number with country code and actual local international access code like 0040744333222 the message is sent again with no errors.
This is a very weird behaviour because people sometimes store numbers in full international format because they need them when roaming.
I thought about replacing + with 00, but this is not a general valid solution because some parts of the world use different international acces codes : 00 in Europe, 011 in Unites States and a lot more codes in Asia.
Is there a way to determine the network access code or automatically transform a phone number from the agenda to MSISDN format ?
Any other suggestions are welcome.
|All times are GMT -5. The time now is 06:59 PM.|
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.