SMS Configuration: SMSGlobal Email2SMS

This screen is used to configure the SMS gateway for SMSGlobal. See also Concepts|SMS and Reference|Setup|SMS. The screen is in two parts - the top contains the parameters, the bottom allows you to test the setup.

The fields in the top half are as follows:
Name - the name of the connection
Description - a description which serves to clarify the name
Website - SMSGlobal's website
Active - uncheck this box to deactivate this configuration
Country Prefix - the country code, eg 61 for Australia, 44 for the UK, etc
Area Prefix - the digit used to prefix the area code, ie 0 for Australia - see also below
From - a valid email address - this must be the same as that entered in the Email to SMS settings in the Preferences page at https://www.smsglobal.com/mobileworks/preferences.php

The bottom half of the screen contains:
Number - the phone number to which the test message is to be sent
Message - the text for the SMS message
SMS Button - press to send the email
Email - this panel shows the email that will be sent
Status - this shows 'OK' if all is OK else an error message indicating what is wrong

To get the Email and Status to update you must press the Enter key when the cursor is positioned in either of the Number or Message fields.

Note: The Country and Area Prefixes are used to format phone numbers so that they have the required format. That is, the customer's number will be something like 0413 123 456, but the gateway needs the full international number, ie 61413123456. However, if the customer lives in another country then their number will be something like (for Hong Kong) 852 1234 5678. In this case we can use the full number (without the spaces) 85212345678.

So the logic is:
Does the customer's number start with the Area Prefix? If yes, then strip the prefix and add the Country Prefix else assume that this is an international number and leave as is.

However, there are currently bugs in this code - see https://openvpms.atlassian.net/browse/OVPMS-1316.

[1.7.1] This bug has been fixed.  The logic is now: if a phone number is prefixed with +, it will be removed, and no other processing will be performed. So +8512345678 -> 8512345678.
All other numbers (ie those without a leading +) will be processed as before.

Syndicate content