O'Reilly logo

Twilio Cookbook by Roger Stringer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a caller ID routing plugin

This simple caller ID plugin will let your user assign caller IDs to incoming phone numbers.

We're going to limit this to call flows, so that you can have the caller ID handled differently for each option in a call flow.

For example, if you set up extensions, you could say, if the extension is 1 and the call is coming from 1234567890, forward the call to voice mail; however, if the extension is 2 and the call is coming from 1234567890, call a sales person.

Getting ready

The complete source code for this recipe can be found in the Chapter10/Recipe5 folder in the source code for this book.

How to do it…

Now let's set up a caller ID system. This system will let us define a set of actions based on the caller's phone number. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required