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
>>> manager = Manager()

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

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

>>> # call gawel and make him call 0299999999 on reply
>>> 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.2.zip (16.3 kB view details)

Uploaded Source

File details

Details for the file panoramisk-0.2.zip.

File metadata

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

File hashes

Hashes for panoramisk-0.2.zip
Algorithm Hash digest
SHA256 e2aee4ba6ba3f6db31e9f409c6df3211e01ef0758989365d9108a88a3a6607f3
MD5 d0f166bd14e5b3729d2055fe439d1355
BLAKE2b-256 524efedd2c11028745c5a3801c4e74896370ab029c17a8e9cfca0afed651e8fb

See more details on using hashes here.

Provenance

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