Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

asyncio based library to play with asterisk

Project description

panoramisk is a library based on python’s asyncio to play with asterisk’s manager.

It use the tcp manager server to listen to events and the http server (/arawman) to send actions.

See the api for more informations:


Basic usage:

>>> from panoramisk import Manager
>>> import asyncio

>>> loop = asyncio.get_event_loop()

>>> manager = Manager(loop=loop)

>>> def handle_meetme(event, manager):
...     # do stuff with the event

>>> # listen to Meetme* events
>>> manager.register_event('Meetme*', handle_meetme)

>>> # connect
>>> manager.connect()

>>> # wait a few seconds while we connecting and
>>> # call gawel and make him call 0299999999 on reply
>>> loop.call_later(5, manager.send_action, {
...     'Action': 'Originate',
...     'Channel': 'SIP/gawel',
...     'WaitTime': 20,
...     'CallerID': 'gawel',
...     'Exten': '0299999999',
...     'Context': 'default',
...     'Priority': 1,
... })

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for panoramisk, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size (16.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page