https://github.com/maxiberta/django-asterisk
Phone call queuing and management for the Django web framework using an Asterisk server
https://github.com/maxiberta/django-asterisk
Last synced: about 2 months ago
JSON representation
Phone call queuing and management for the Django web framework using an Asterisk server
- Host: GitHub
- URL: https://github.com/maxiberta/django-asterisk
- Owner: maxiberta
- License: mit
- Created: 2011-05-24T13:52:35.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-07-25T19:25:23.000Z (almost 14 years ago)
- Last Synced: 2025-02-28T01:48:48.950Z (2 months ago)
- Language: Python
- Homepage:
- Size: 93.8 KB
- Stars: 34
- Watchers: 9
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - django-asterisk - Phone call queuing and management for the Django web framework using an Asterisk server (Python)
README
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
------------* pyst (http://pyst.sf.net/)
* a working Asterisk server (see docs/asterisk for a sample config)
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.