Skip to main content

asyncio based library to play with asterisk

Project description

https://travis-ci.org/gawel/panoramisk.png?branch=master https://coveralls.io/repos/gawel/panoramisk/badge.png?branch=master https://pypip.in/v/panoramisk/badge.png https://pypip.in/d/panoramisk/badge.png

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: https://panoramisk.readthedocs.org/

Source: https://github.com/gawel/panoramisk/

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.

Source Distribution

panoramisk-0.3.zip (16.6 kB view details)

Uploaded Source

File details

Details for the file panoramisk-0.3.zip.

File metadata

  • Download URL: panoramisk-0.3.zip
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for panoramisk-0.3.zip
Algorithm Hash digest
SHA256 671d06b65d724c7d1b3c9dc8b2f03d72edf2dc63b914cecb58bef8781fa9e4eb
MD5 05060dabcb6ea86aa3f78a40652827cc
BLAKE2b-256 7dd787122b6db841cb10a24fe18539000ccc65a72c4ca49a6c1b7a0d6ae237e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page