Giter Site home page Giter Site logo

twilio_oncall_redirector's Introduction

Twilio On-Call Redirector

This utility is intended to enable the creation of a Twilio phone number that redirects incoming calls to whomever is on-call at the time.

Setup

  • Create a read-only Pagerduty API token for your instance.
  • Create an S3 bucket for static file hosting (e.g. twiliooncallredirector.ops.example.com)
  • Create a matching Amazon AWS IAM user with PutObject permissions on this new bucket.

Usage

  • Clone this utility repo into a container, VM, or host somewhere with Internet access.
  • Run "bundle install --standalone"
  • Edit the config.yaml to include your:
    • Pagerduty API token
    • Pagerduty API endpoint
    • Pagerduty schedule IDs to generate TwiML for
    • AWS account keys
    • S3 bucket name
  • Call "bundle exec ./oncall.rb" from cron periodically.
  • Setup inbound phone numbers in Twilio and point them at the new TwiML files in the S3 bucket.

twilio_oncall_redirector's People

Contributors

jof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

lookout

twilio_oncall_redirector's Issues

problem with oncall.rb usage

Hello,

I've found this project to be awesome as it fits some need that I'm having regarding updating the twilio phonenumber with whoever is on call with pager duty but upon using it i'm having the following errors:

$ bundle install --standalone
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using activesupport (3.0.0)
Using active_support (3.0.0)
Using backports (3.6.0)
Using bundler (1.3.5)
Using coderay (1.1.0)
Using json (1.8.1)
Using method_source (0.8.2)
Installing mime-types (2.2)
Installing multi_json (1.9.2)
Installing proxies (0.2.1)
Installing slop (3.5.0)
Installing pry (0.9.12.6)
Installing rack (1.5.2)
Installing rack-protection (1.5.2)
Installing rack-test (0.6.2)
Installing rest-client (1.6.7)
Installing s3 (0.3.21)
Installing tilt (1.4.1)
Installing sinatra (1.4.4)
Installing sinatra-contrib (1.4.2)
Your bundle is complete!
It was installed into ./bundle
$ bundle exec oncall.rb
bundler: command not found: oncall.rb
Install missing gem executables with `bundle install`
$ ruby -v
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux]

I've tried several ways to deploy this, updating ruby version etc and I'm not getting it to work.
Any ideas on what might be failing? Anyway I can troubleshoot better?

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.