Acquire a phone number from Plivo and configure it for sms messaging
After you sign up for a Plivo account here and log in to your account here, to buy a phone
number click on the pound sign (#) on the left hand vertical bar, then, on the left sidebar, under ‘Phone Numbers; click on ‘Buy Numbers: From the ‘Country’ drop-down list select the country where you want your number to be located. Under ‘Type’ check ‘Any’ and under ‘Capability’ check ‘Any’ If you know what prefix you want for your number, type the prefix in the ‘Number’ field, while having ‘Number’ selected from the ‘drop-down’ list. You can also choose ‘Location’ from that drop-down list, then type the name of the city or state you want your number to be located in. Click the ‘Search’ button to search for the available phone numbers, then pick a phone number that you like. The number should have at least ‘SMS’ specified on the ‘Capability’ column. To buy the number just click the ‘Buy Number’ button.
After you have bought a real phone number from Plivo, click on ‘Your Numbers’ on the left sidebar, then, under ‘Number and Area’ click on your phone number. In the new window, from the ‘Application Type’ drop-down list choose ‘XML Application’ and from the ‘Plivo Application’ drop-down list choose ‘Inbound_SMS_Messages; then click the ‘Update Number’ button. If during tests you try to send a message from a 10 digit number to itself, it won't get through, since Plivo doesn't allow sending SMS messages from a 10 digit number to itself.