-
Notifications
You must be signed in to change notification settings - Fork 10
/
PKG-INFO
63 lines (46 loc) · 2.34 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Metadata-Version: 1.1
Name: django-asterisk
Version: 0.1
Author: Maximiliano Bertacchini
Home-page: https://github.com/maxiberta/django-asterisk
Download-url: https://download.github.com/maxiberta-django-asterisk-3fd92da.zip
Summary: Phone call queuing and management for the Django web framework using an Asterisk server
Description: Description
===========
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.
Keywords: django asterisk
Requires: pyst
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Telecommunications Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Communications :: Telephony