Configuring phone numbers to receive calls or SMS messages

Twilio Phone numbers require instructions for handling incoming calls and SMS messages. To get these instructions, Twilio checks the configuration of each phone number when an inbound communication arrives. Here are the methods for adjusting this routing.

Configure a Twilio Phone Number for Receiving Voice Calls via Console

  1. Login to your account at www.twilio.com.
  2. Click Phone Numbers Icon_Numbers.png.
  3. Click the desired phone number to modify.
  4. Scroll to the Voice & Fax section, and then modify the phone number’s routing as desired. When finished, click Save.
    • Voice - Webhook: Point Twilio to an external website for logic and TwiML commands.
      Voice_1_webhook.png 

    • Voice - TwiML Bin: Point Twilio to a Twilio-hosted TwiML Bin.
      Voice_2_TwiMLBin.png 

    • Voice - Function (Beta): Point Twilio to a Twilio-hosted Node.js Function.
      Voice_3_function.png 

    • Voice - Studio Flow (Preview): Point Twilio to a Flowchart-style Studio Flow.
      Voice_4_studio.png 

    • Voice - Proxy Service (Beta): Point Twilio to a Proxy Service.
      Voice_5_proxy.png 

    • Voice - TwiML App: Point Twilio to a TwiML App.
      Voice_6_TwiMLApp.png 

    • Voice - Elastic SIP Trunk: Point Twilio to an Elastic SIP Trunk.
      Voice_7_trunk.png 

Configure a Twilio Phone Number for receiving SMS Messages via Console

  1. Login to your account at www.twilio.com.
  2. Click Phone Numbers Icon_Numbers.png.
  3. Click the desired phone number to modify.
  4. Scroll to the Messaging section, and then modify the phone number’s routing as desired. When finished, click Save.
    • SMS - Webhook: Point Twilio to an external website for logic and TwiML commands.
      SMS_1_webhook.png 

    • SMS - TwiML Bin: Point Twilio to a Twilio-hosted TwiML Bin.
      SMS_2_TwiMLBin.png 

    • SMS - Function (Beta): Point Twilio to a Twilio-hosted Node.js Function.
      SMS_3_function.png 

    • SMS - Studio Flow (Preview): Point Twilio to a Flowchart-style Studio Flow.
      SMS_4_studio.png 

    • SMS - Proxy Service (Beta): Point Twilio to a Proxy Service.
      SMS_5_proxy.png 

    • SMS - TwiML App: Point Twilio to a TwiML App.
      SMS_6_TwiMLApp.png 

    • SMS - Messaging Service: Point Twilio to a Messaging Service.
      SMS_7_service.png 

Configure a Twilio Phone Number for receiving Incoming Calls or Messages via the REST API

Twilio Phone Numbers can be updated programmatically by making an HTTP POST to the Phone Number SID’s resource, and specifying the desired parameters:

  • VoiceUrl: A Programmable Voice webhook, or the address for a TwiML Bin, Function, or Studio Flow.
  • VoiceApplicationSid: A TwiML App SID.
  • TrunkSid: An Elastic SIP Trunking Trunk SID.
  • SmsUrl: A Programmable Messaging webhook, or the address for a TwiML Bin, Function, or Studio Flow.
  • SmsApplicationSid: A TwiML App SID.

For more information, please see our API documentation for the Incoming Phone Numbers Resource.

Have more questions? Submit a request
Powered by Zendesk