[asterisk-app-dev] Announcing: ari-py

David M. Lee dlee at digium.com
Fri Oct 25 11:44:23 CDT 2013


A little while ago I announced Swagger.py, which is a general purpose
client library for Swagger enabled API's.

Today I'm announcing ast-ari-py, which is an Asterisk specific wrapper
around Swagger.py, which gives you a fairly straightforward object
model around the Swagger API's, plus an API for registering event
callbacks from the WebSocket.

    import ari

    client = ari.connect('http://localhost:8088/', 'hey', 'peekaboo')

    def on_start(channel, event):
        channel.answer()
        channel.play(media='sound:hello-world')
        channel.continueInDialplan()

    client.on_channel_event('StasisStart', on_start)
    client.run(apps="hello")


You can get more details about the project on its GitHub page
(https://github.com/asterisk/ast-ari-py). Issues, pull requests and
wiki pages welcome!

-- 
David M. Lee
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org




More information about the asterisk-app-dev mailing list