Giter Club home page Giter Club logo

django-asterisk's Introduction

Django Asterisk

django-asterisk is a reusable Django app for queuing and managing phone calls, inspired and based on django-mailer. It makes calls through the Management interface of an Asterisk server.

Setup

  • Add the django_asterisk app in settings.INSTALLED_APPS

  • Set the following variables in settings.py:

    AST_HOST = 'localhost'
    AST_USER = 'django'
    AST_PASS = 'mysecret'
    AST_PRIO = 1
    AST_TIMEOUT_ORIGINATE = 30 # sec
    AST_TIMEOUT_HANGUP = 120 # sec
    
  • Change the default passwords!!

Requirements

Usage

Supposing you have an object called 'user' with the 'phone_number' attribute, you can create and queue a call like this:

from django_asterisk.models import Call
channel = 'SIP/%s@mysipprovider' % user.phone_number
call = Call(channel=channel, extension=user.phone_number, context='django-out', caller_id='"Django Asterisk Test" <0123456789>', related_object=user)
call.save()

You can later make the call from the admin, by selecting it and executing the "Make call" action.

django-asterisk's People

Contributors

maxiberta 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.