Skip to main content

Python binding for Asterisk AJAM interface

Project description

Pyajam allows to interact with an asterisk server using the AJAM interface, in a pythonic way. Example:

>>> from pyajam import Pyajam
>>> ajam = Pyajam(server='192.168.0.10', username='mspencer', password='*rocks!')
>>> if not ajam.login():
>>>             print "Invalid login"
>>>             sys.exit(1)
>>> # display list of peers (SIP and IAX2)
>>> print ajam.peers())
>>> # display peer 101 attributes
>>> peer  = ajam.sippeer('101'))
>>> # screenprint events
>>> def ajam_event_listener(data):
>>>             print data
>>> ajam.waitevent(async=False, callback=ajam_event_listener)

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 PyAjam, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size PyAjam-0.2.tar.gz (20.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page