How to Setup an iPhone or Android with Twilio SIM Wireless
This is a tutorial on how to setup you iPhone/Android with the Twilio Programmable Wireless Beta.
This is a tutorial on how to setup you iPhone/Android with the Twilio Programmable Wireless Beta. This is cool for having an extra line or for you SIM tablet.
How to send a text message from a phone that has a Programmable Wireless SIM
You want to send a text message. The first thing you need is a Phone Number. You can learn how to purchase a Phone Number in the Purchase a Phone Number section of this guide.
Set the SMS TwiML URL for messages originated by your SIM-connected Device
- Point your web browser to the SIMs section of the Console
- Select the SIM that is in your phone
- Need help registering a SIM? Refer to the Ordering and registering your first SIM guide.
- Click on the Programmable Voice & SMS tab
- Click on the drop-down to the right of SMS URL under the Programmable SMS section
- Select TwiML
- Click the red + button to the left of the SMS URL
- You should see a popup appear with a TwiML template for routing messages
- You can rename the Friendly Name
- Replace YOUR_NUMBER_HERE with the Programmable Number from the Purchase a Programmable Number section of this guide
- Click Add TwiML Bin
- Click Save
How to send a text message to a phone that has a Programmable Wireless SIM
You’re able to send SMSs from your cellphone with a Programmable Wireless SIM, but you’re unable to receive SMSs. This section will help you set up your SIM to receive texts.
Create TwiML for incoming SMSs
- Open the TwiML section of the Console
- Enter a name in the Friendly Name input field
Enter the following TwiML in the input box:
<?xml version="1.0" encoding="UTF-8"?> <Response> <Message to="sim:YOUR_SIM_SID_HERE" from="{{From}}"> {{Body}} </Message> </Response>
- Enter the SIM Sid in place of YOUR_SIM_SID_HERE
- You can find your SIM Sid in the SIMs section.
- The SIM Sid begins with the DE prefix
- Note the to attribute starts with “sim:”
- Click Save
Associate TwiML to a Twilio Phone Number
- Open the Phone Numbers section of the Console.
- Refer to the Purchase a Phone Number section above if you don’t have a number.
- Select the Programmable Number you wish to associate with your SIM
- Select TwiML from the A message comes in dropdown under Messaging
- Select the Friendly Name of the TwiML you created in the previous section
- Click Save
Set the Voice TwiML URL for calls originated by your SIM-connected Device
- Point your web browser to the SIMs section of the Console
- Select the Sim that is in your phone
- Need help registering a SIM? Refer to the Ordering and registering your first SIM guide
- Click on the Programmable Voice & SMS tab
- Click on the drop-down to the right of Voice URL under the Programmable Voice section
- Select TwiML
- Click the red + button to the left of the Voice URL
- You will see a popup appear with a TwiML template for routing calls that are made by the phone.
- You can rename the Friendly Name
- Replace YOUR_NUMBER_HERE with the Phone Number from the previous section
- Click Add TwiML Bin
- Click Save
How to receive a call to your Programmable Wireless connected phone
You’re able to make phone calls from your cellphone with a Programmable Wireless SIM, but you’re unable to receive calls. This section will help you set up your SIM to receive calls.
Create TwiML for incoming calls
- Open the TwiML section of the Console
- Enter a Friendly Name for your new TwiML Bin
- Enter the following TwiML the TwiML input box
<?xml version="1.0" encoding="UTF-8"?> <Response> <Dial> <Sim>YOUR_SIM_SID_HERE</Sim> </Dial> </Response>
- Enter the SIM Sid in place of YOUR_SIM_SID_HERE
- You can find your SIM Sid in the SIMs section.
- The SIM Sid begins with the DE prefix
- Click Save
Associate TwiML to a voice-enabled Twilio Phone Number
- Open the Phone Numbers section of the Console.
- Refer to the Purchase a Phone Number section above if you don’t have a number
- Select the Phone Number you wish to associate with your SIM
- Select TwiML from the A call comes in drop-down under Voice & Fax
- Select the Friendly Name of the TwiML you created in the previous section
- Click Save
Call the phone number and you should receive the call on your SIM-connected device. Magic!
SMS Full Documentation: https://www.twilio.com/docs/api/wireless/send-and-receive-text-messages-programmable-sms
Phone Full Documentation: https://www.twilio.com/docs/api/wireless/make-and-receive-phone-calls-programmable-voice