Setting up Live Call Routing for VictorOps is a quick process and highly configurable.
- Sign up with Twilio and buy a number.
- Create a new function in Twilio and paste in code which can be found here.
- Link your new function to the phone number you bought.
- Configure environmental variables in Twilio.
We made a VictorOps Knowledge Base article to guide you through the steps.
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
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
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright © 2017 VictorOps, Inc.