Skip to main content

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyAjam-0.2.tar.gz (20.9 kB view details)

Uploaded Source

File details

Details for the file PyAjam-0.2.tar.gz.

File metadata

  • Download URL: PyAjam-0.2.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyAjam-0.2.tar.gz
Algorithm Hash digest
SHA256 e392fd09f7187d4f68eb1f8a250fa08a7c90b60d4b863a77408d3a5be78daf2f
MD5 c48a076a8253576bcf19b51df1bd4860
BLAKE2b-256 ea810dffdca485bdd775effb92e1a18ba01295761b1f2c47487c9ac2fd11cbae

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2 This release

1 file

0.1.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page