<p>Benjamin Keith Ford <strong>uploaded patch set #5</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/10882">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_stasis: Auto-create context and add ability to switch applications.<br><br>At AstriCon, there was a strong desire for the ability to completely<br>bypass dialplan when using ARI. This is possible through the automatic<br>creation of a context and a couple of extensions whenever an application<br>is started.<br><br>For example, if you have an application named 'ari-example', a context<br>named 'stasis-ari-example' will be automatically created whenever this<br>application is started. Two extensions (a match-all extension for Stasis<br>and a 'h' extension) are created within this context. Any endpoint that<br>registers to Asterisk within this context will send all calls to the<br>corresponding Stasis application. When the application is destroyed, the<br>context is removed.<br><br>Another new feature is the ability to move between Stasis applications<br>within Stasis itself. This can be done by calling 'move' in an<br>application, providing (at minimum) the channel's id and the application<br>to switch to. If the application is not registered or active, nothing<br>will happen and the channel will remain in the current application.<br>Optionally, a list of arguments can be passed to the function call for<br>the receiving application. A full example of a 'move' call would look<br>like this:<br><br>client.channels.move(channelId, app, appArgs)<br><br>The control object used to control the channel in Stasis can now switch<br>which application it belongs to, rather than belonging to one Stasis<br>application for its lifetime. This allows us to use the same control<br>object instead of having to tear down the current one and create<br>another.<br><br>ASTERISK-28104 #close<br><br>Change-Id: Ib6c569468472dbb08905b356887373c81e03015d<br>---<br>M CHANGES<br>M include/asterisk/stasis_app.h<br>M res/ari/resource_channels.c<br>M res/ari/resource_channels.h<br>M res/res_ari_channels.c<br>M res/res_stasis.c<br>M res/stasis/app.c<br>M res/stasis/control.c<br>M res/stasis/control.h<br>M rest-api/api-docs/channels.json<br>10 files changed, 528 insertions(+), 27 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/82/10882/5</pre><p>To view, visit <a href="https://gerrit.asterisk.org/10882">change 10882</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10882"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Ib6c569468472dbb08905b356887373c81e03015d </div>
<div style="display:none"> Gerrit-Change-Number: 10882 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua C. Colp <jcolp@digium.com> </div>