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: 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.1.tar.gz
(11.7 kB
view details)
File details
Details for the file panoramisk-0.1.tar.gz
.
File metadata
- Download URL: panoramisk-0.1.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 728a8e50e92678e038cae6836aa39a09079a8781c2ee96e3406a46d222bec5fa |
|
MD5 | 2f0114e4bef922d7a8a7a0286f46271f |
|
BLAKE2b-256 | 556d4f9e422c05148782f383b2348409ce6aea4cbcb8ebe4fd033bee22315271 |