asterisk / ari-py

Library for accessing the Asterisk REST Interface
Other
149 stars 106 forks source link

Application registered callback #23

Closed pc-m closed 8 years ago

pc-m commented 8 years ago

Make it possible to know that an application has been started as soon as possible to be able to subscribe to applications before they are used.

In my use case, I'm interested in ALL ChannelHold and ChannelUnhold events. Do receive those events, I have to call

client.applications.subscribe(applicationName='myapp', eventSource='channel:')

as soon as possible.

Usage:

client.on_application_registered('myapp', my_function)
pc-m commented 8 years ago

Some commits were unintentionally included in this PR