Call Forwarding using TwiML Bins

  1. Login to your account at Twilio.
  2. Create TwiML Bin HERE
  3. Add a Friendly Name and some TwiML, and then click create. (create a friendly name)
  4. Paste the example into the box <Response> <Dial> +12345559876 </Dial> </Response> | replace 2345559876 with your phone number
  5. Configure this TwiML bin on your Twilio number HERE
  6. Go to Voice & Fax
  7. Accept Incoming Voice Calls
  8. Configure With Webhook, TwiML Bin, Function, Studio Flow, Proxy Service
  9. A Call Comes In TwiML Bin
  10. Choose the TwiML Bin you created earlier

Lookup up numbers with Twilio API and get a nice pretty JSON output.

curl -s -X GET -u'Account_Sid:Auth_Token' 'https://lookups.twilio.com/v1/PhoneNumbers/5556667890?Type=caller-name&Type=carrier' | jq -r .