Giter Club home page Giter Club logo

plivo-callcenter's Introduction

Plivo Call Center Application

This application is used to create a generic call center application using the Plivo platform. Agents can receive calls by going to /agent URL. When clients call the number assosciated with the Plivo Application, calls are forwarded to the agent. If there are more than one caller, they are put on hold until the call currently being handled is hung up.

Demo

https://plivocallcenter.herokuapp.com/admin

https://plivocallcenter.herokuapp.com/agent

Call center number : +1 8552110703

How to run ?

Run the application

  1. Install dependencies
  2. Create the tables necessary by running the following command(s)
create table calls ( id SERIAL PRIMARY KEY, calluuid VARCHAR(36), agent_sipusername VARCHAR(40) );
create table agents ( id SERIAL PRIMARY KEY, sipusername VARCHAR(40), busy boolean );   
create table call_stats ( id SERIAL PRIMARY KEY, duration INTEGER );
  1. Set credentials like authentication token, database password and configuration values in environment variables
  2. Run app.py

Configure Plivo Application

  1. Create an application in Plivo
  2. Set the answer URL and hangup URL to that of "/answer" and "/hangup" of the hosted application created in the above subsection
  3. Buy a number from Plivo and assign it to the Plivo application created above

After this you can buy sip endpoints from Plivo and insert it into the call center application from the admin page. Calls made to the number bought from Plivo will get forwarded to the agents. Please note that when usernames are inserted into the database, calls are made to sip://[email protected].

Some screenshots

Admin page

Admin page

Agent page

Agent page

plivo-callcenter's People

Contributors

simula67 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ktosiu ranganaths

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.