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).
source share