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.
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.
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
Did you check/try Pyst?
Use pyst2, it's a fork of pyst. Last is not develops any more. http://pypi.python.org/pypi/pyst2/0.4
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.