Announcing: ari-py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux