Coder Social home page Coder Social logo

mickstevens / queue-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devinrader/queue-demo

0.0 2.0 0.0 1.52 MB

A simple sample application that shows how to build a basic dashboard to display Twilio Queue statistics, such as the number of callers in a queue and the average queue wait time.

C# 12.00% CSS 0.46% ASP 0.07% JavaScript 87.48%

queue-demo's Introduction

Twilio Queue Dashboard Demo

Whether you're running a call center, just a small office, or have to deal with all of the incoming calls for that event tonight, putting people on hold (aka call queuing) is an important but often difficult process.

With the launch of Twilios new Queue functionality, its never been easier to build call queuing systems.

This sample demonstrates how to use the new Queue functionallity to place incoming calls into a call queue, as well as build a web dashboard that shows call queue stats.

Queue Dashboard

Check out a live demo of this sample at http://twilio-queue.azurewebsites.net/

Prerequisites

In order to run this sample you will need to ensure you have the following prerequisites installed:

  • Visual Studio 2010 or later
  • ASP.NET MVC 3 or later
  • Windows Azure SDK for .NET

Additionally before you can run the sample you will need to replace several tokens in the source with your own values.

Installation

This sample comes with a number of projects that you need to configure and deploy. Lets walk through whats there and how to get it running. To get started:

  • If you don't already have one, create an Twilio account
  • If you don't already have one, create a Windows Azure account
  • Make sure you have the prequisites listed above installed

Next, grab the latest source code and open the solution in Visual Studio. The solution contains four projects:

  • Queue-Demo: An ASP.NET MVC website that handles Twilio call requests and contains the SignalR hub
  • Queue-Demo-Azure: The Windows Azure publish project
  • Queue-Demo-Worker: A Windows Azure Worker Role project that is responsible for polling the Twilio API and reteriving the average wait time for the Queue.
  • Queue-Demo-Settings: A class library that contains Twilio and SignalR configuration settings.

Update the static properties in the Settings class:

public static class Settings
{
    //Replace the values with your own Twilio AccountSid and AuthToken
    public static string accountSid = "[YOUR_ACCOUNT_SID]";
    public static string authToken = "[YOUR_AUTH_TOKEN]";

    //Replace the value below with the domain where your project will be deployed
    public static string hubUrl = "[YOUR_HUB_URL]";
}

Once you've updated the settings, deploy the Queue-Demo-Azure project to Windows Azure, and then deploy the Queue-Demo project to your web host.

Open your Twilio dashboard and configure your Twilio number to point to the CallController endpoint in the Queue-Demo website

More Info

The full Queue documentation is available here: http://www.twilio.com/docs/api/twiml/queue and http://www.twilio.com/docs/api/rest/queue

Built for explanation & demo purposes, September 2012.

queue-demo's People

Watchers

James Cloos avatar Mick Stevens avatar

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.