Skip to content

Lotto24/twilio-live-call-routing

 
 

Repository files navigation

Twilio Live Call Routing

Getting Started

Deploying to Production in Twilio

Setting up Live Call Routing for VictorOps is a quick process and highly configurable.

  1. Sign up with Twilio and buy a number.
  2. Create a new function in Twilio and paste in code which can be found here.
  3. Link your new function to the phone number you bought.
  4. Configure environmental variables in Twilio.

We made a VictorOps Knowledge Base article to guide you through the steps.

Development

See also Twilio API Docs

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/victorops/twilio-live-call-routing

# Go into the repository
$ cd twilio-live-call-routing

# Install dependencies
$ npm install

Running the Tests

Set environment variables VICTOROPS_API_ID, VICTOROPS_API_KEY, and VICTOROPS_TWILIO_SERVICE_API_KEY in your local environment.

# Add these lines to your .bash_profile
export VICTOROPS_API_KEY="<YOUR_API_KEY>"
export VICTOROPS_API_ID="<YOUR_API_ID>"
export VICTOROPS_TWILIO_SERVICE_API_KEY="<YOUR_VICTOROPS_TWILIO_SERVICE_API_KEY>"

Testing uses Mocha and Chai. From your command line:

# Go into the repository
$ cd twilio-live-call-routing

# Run the tests
$ npm test

License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright

Copyright © 2017 VictorOps, Inc.