Asterisk - The Open Source Telephony Project  18.5.0
Stasis Application API

This is the API that binds the Stasis dialplan application to external Stasis applications, such as res_stasis_websocket.

The associated res_stasis module registers a dialplan function named Stasis, which uses res_stasis to put a channel into the named Stasis app. As a channel enters and leaves the Stasis diaplan application, the Stasis app receives a 'stasis-start' and 'stasis-end' events.

Stasis apps register themselves using the stasis_app_register and stasis_app_unregister functions. Messages are sent to an appliction using stasis_app_send.

Finally, Stasis apps control channels through the use of the stasis_app_control object, and the family of stasis_app_control_* functions.

Since module unload order is based on reference counting, any module that uses the API defined in this file must list "res_stasis" in the requires field.