Skip to content

Asterisk REST interface (ARI) nameko client

Notifications You must be signed in to change notification settings

muraig/nameko-ari

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nameko Asterisk REST Interface client extension

This Nameko extension has both a HTTP client and websocket event listener.

Example service:

from nameko_ari import AriClient, stasis


class AriBroker:
    name = 'asterisk_ari'
    ari_client = AriClient()


@stasis('my_app')
def on_stasis_event(self, event):
    print(event)

Configuration parameters:

  • ASTERISK_HTTP_URI - Asterisk ARI connection string, e.g. http://127.0.0.1:8088. The rest part ari/api-docs/resources.json will be appended to this URI.
  • ASTERISK_ARI_USER - ARI login from ari.conf.
  • ASTERISK_ARI_PASS - ARI password from ari.conf.
  • ASTERISK_ARI_APP - for WS client you can specify application name as @stasis entrypoint parameter e.g. @stasis('my_app'). For HTTP client set application name in config.

About

Asterisk REST interface (ARI) nameko client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%