Reputation: 175
Has anyone successfully used a Python API to connect to Asterisk AMI? Maybe Starpy or py-asterisk, or even FATS?
If so can you please display examples or point to a link?
There seems to be very little documentation regarding the Python APIs.
Upvotes: 4
Views: 8546
Reputation: 2048
I wrote panoramisk which is python3 only (old releases can work with python2.7)
https://github.com/gawel/panoramisk
Upvotes: 0
Reputation: 1
Use pyst. Download it from sourceforge
Now just extract the tar file, go to the directory of pyst through terminal and enter following commands.
python setup.py install
Now, in your python script add
from asterisk.agi import *
Now you are all set to use asterisk with python.
Upvotes: 0
Reputation: 140
Use pyst2, it's a fork of pyst. Last is not develops any more. http://pypi.python.org/pypi/pyst2/0.4
Upvotes: 3
Reputation: 149
i am successfully using https://github.com/al-the-x/pyst for years
see usage example in the doc block here - https://github.com/al-the-x/pyst/blob/master/asterisk/manager.py
Upvotes: 5