Skip to main content

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

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.

Release files for django-asterisk 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-asterisk 0.1
File Size Uploaded
django-asterisk-0.1.tar.gz 4.0 kB Details

Release files / django-asterisk-0.1.tar.gz

Download URL django-asterisk-0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3f95e6e2af28fe976eeece2c7cfc9f2f95d56ad5acf56e52f9a1879fc735ecb4
BLAKE2b-256 checksum
How to use checksums
c6c8a4c69d2e6df2b48919a91c192e6674713265c5feb2efa5d0a392f5287b45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page