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='', 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

Supported by

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