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

  1. Point your web browser to the SIMs section of the Console
  2. Select the SIM that is in your phone
    1. Need help registering a SIM? Refer to the Ordering and registering your first SIM guide.
  3. Click on the Programmable Voice & SMS tab
  4. Click on the drop-down to the right of SMS URL under the Programmable SMS section
  5. Select TwiML
  6. Click the red + button to the left of the SMS URL
  7. You should see a popup appear with a TwiML template for routing messages
  8. You can rename the Friendly Name
  9. Replace YOUR_NUMBER_HERE with the Programmable Number from the Purchase a Programmable Number section of this guide
  10. Click Add TwiML Bin
  11. 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

  1. Open the TwiML section of the Console
  2. 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>
  1. Enter the SIM Sid in place of YOUR_SIM_SID_HERE
    1. You can find your SIM Sid in the SIMs section.
    2. The SIM Sid begins with the DE prefix
    3. Note the to attribute starts with “sim:”
  2. Click Save

Associate TwiML to a Twilio Phone Number

  1. Open the Phone Numbers section of the Console.
    1. Refer to the Purchase a Phone Number section above if you don’t have a number.
  2. Select the Programmable Number you wish to associate with your SIM
  3. Select TwiML from the A message comes in dropdown under Messaging
  4. Select the Friendly Name of the TwiML you created in the previous section
  5. Click Save

 

Set the Voice TwiML URL for calls originated by your SIM-connected Device

  1. Point your web browser to the SIMs section of the Console
  2. Select the Sim that is in your phone
    1. Need help registering a SIM? Refer to the Ordering and registering your first SIM guide
  3. Click on the Programmable Voice & SMS tab
  4. Click on the drop-down to the right of Voice URL under the Programmable Voice section
  5. Select TwiML
  6. Click the red + button to the left of the Voice URL
  7. You will see a popup appear with a TwiML template for routing calls that are made by the phone.
  8. You can rename the Friendly Name
  9. Replace YOUR_NUMBER_HERE with the Phone Number from the previous section
  10. Click Add TwiML Bin
  11. 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

  1. Open the TwiML section of the Console
  2. Enter a Friendly Name for your new TwiML Bin
  1. 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>
  1. Enter the SIM Sid in place of YOUR_SIM_SID_HERE
    1. You can find your SIM Sid in the SIMs section.
    2. The SIM Sid begins with the DE prefix
    3. Click Save

Associate TwiML to a voice-enabled Twilio Phone Number

  1. Open the Phone Numbers section of the Console.
    1. Refer to the Purchase a Phone Number section above if you don’t have a number
  2. Select the Phone Number you wish to associate with your SIM
  3. Select TwiML from the A call comes in drop-down under Voice & Fax

 

  1. Select the Friendly Name of the TwiML you created in the previous section
  2. 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