]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stasis: Auto-create context and extens on Stasis app launch.
authorBen Ford <bford@digium.com>
Tue, 29 Jan 2019 16:48:49 +0000 (10:48 -0600)
committerBen Ford <bford@digium.com>
Tue, 29 Jan 2019 18:19:22 +0000 (12:19 -0600)
commit26a04477f4eee1d8a15c9fd29da4b2b2e6a7b58f
tree2da43a630bc2f48037461d63de51811b45313bf5
parentd87fc1c5910a95e25ee9c66c0ba46b250b829d41
res_stasis: Auto-create context and extens on Stasis app launch.

At AstriCon, there was a strong desire for the ability to completely
bypass dialplan when using ARI. This is possible through the automatic
creation of a context and a couple of extensions whenever an application
is started.

For example, if you have an application named 'ari-example', a context
named 'stasis-ari-example' will be automatically created whenever this
application is started as long as one does not already exist. Two
extensions (a match-all extension for Stasis and a 'h' extension) are
created within this context. Any endpoint that registers to Asterisk
within this context will send all calls to the corresponding Stasis
application. When the application is destroyed, the context is removed.

ASTERISK-28104 #close

Change-Id: Ie35bd93075e05b05e3ae129a83c9426931b7ebac
CHANGES
res/stasis/app.c