What is the most advanced AGI framework for Python asterisk for asterisk?

I have already done some AGI development in the past with PERL and PHP, but Python is used in my current project. I found the frameworks listed here: http://www.voip-info.org/wiki/view/Asterisk+AGI , but they are all pretty old and don't seem to be updated. I would like to know if there are any others there, especially for asterisk 1.6.2. and preferably written in python 2.6 or higher.

Thanks in advance.

+4
source share
2 answers

With my Asterisk 1.6.2.7 I use pyst . I have not changed it for several years (starting with Asterisk 1.0), and it still works with Python 2.4, but I see that this project lives on, has a new maintainer and should work with Python 2.7.

+4
source

Please view Pystrix . I used Pystrix on Python 2.7 and Asterisk 1.8 without any problems.

Although these libraries are old, but if you see their recent changes, you will find that there are only a few commits to improve it, its document, and then nothing more. This library works fine without any problems when communicating with Asterisk, since Asterisk does not change the client communication pattern from 1.4 to the last (I tested at least 1.8), but they made their commands / applications / functions with a lot of arguments. Thus, existing libraries work fine.

In all these libraries you will find the send_action method. All other methods give you helpers for assembling the argument of commands in the recognized asterisk format (ends with \ n \ r, and the command ends with \ n \ r \ n \ r).

+1
source

All Articles