Setting up call forwarding
With some basic programming, you can certainly use our tools to set up call forwarding, so that calls coming in to your Twilio phone number are forwarded to another device.. There are several ways to set up call forwarding:
Don’t want to do any sort of coding to do call forwarding? Head here.
Want to learn some basic formulas to get calls forwarding? Click here.
Are you a web developer with a hosting service who wants to forward calls? Go here.
No programming necessary!
If you don’t have engineering resources, we’d encourage you to sign up with one of our partners, who have built easy-to-access interfaces for call forwarding and other use cases. These services use Twilio to power their businesses and are aimed at non-developers.
TwiML Bins allow you to input a simple formula into our service to forward your calls to a phone number you own. Here’s how to get started with this feature:
1. Log into your Twilio Account and head into the TwiML Bin section of our Developer Center.
2. Give your Bin a Friendly Name, such as “Forward calls to Mary”
3. Paste in the following content, making sure to substitute “1-205-444-5555″ with the number of the mobile or landline number you want calls to forward to.
<Response> <Dial>1-205-444-5555</Dial> </Response>
4. Save your TwiML Bin.
5. Go to the Manage Numbers page for your account. Click on the red phone numbers to take you to the setup page for the number you want to forward calls from.
6. Now head to the “Voice” section for that number. Your settings should look like this:
7. Feel free to leave all other fields as they are and save your number configuration.
You can do much more complex actions with TwiML Bins, such as recording your forwarded calls, setting a timeout for how long the call will ring, or modifying the caller ID. Check out our technical documentation here for more info.
Finally: If you’re not a developer and are looking for the old way of doing call forwarding, please check out our tutorial for call forwarding using Twimlets.
Some coding and a hosting environment required.
If you want to build call forwarding functionality from scratch and host it on your own server, you can, by using the <Dial> verb. In this case, you’ll want your Voice Request URL to return XML that includes the tag, with your device number specified. For example, if you want all calls to forward to 205-444-5555, you can return the following TwiML:
<Response> <Dial>205-444-5555</Dial> </Response>
If the device you’re forwarding to has an extension, you can make use of <Number>’s optional “sendDigits” parameter. For example, if 205-444-5555 has an extension #1212, you can submit those dialpad tones like this:
<Response> <Dial> <Number sendDigits="#1212">205-444-5555</Number> </Dial> </Response>
To save a webhook to your number, go to the Manage Numbers page for your account. Click on the red phone numbers to take you to the setup page for the number you want to forward calls from.
Now head to the “Voice” section for that number. Your settings should look like this:
For documentation and more examples, see our page on the Dial verb and Number noun.
How much will this cost?
Please read this article on the costs of forwarding a call through a Twilio number.