<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://reviewboard.asterisk.org/r/2862/">https://reviewboard.asterisk.org/r/2862/</a>
     </td>
    </tr>
   </table>
   <br />



<table bgcolor="#e0e0e0" width="100%" cellpadding="8" style="border: 1px gray solid;">
 <tr>
  <td>
   <h1 style="margin-right: 0.2em; padding: 0; font-size: 10pt;">This change has been marked as submitted.</h1>
  </td>
 </tr>
</table>
<br />


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.org/static/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Asterisk Developers.</div>
<div>By David Lee.</div>


<p style="color: grey;"><i>Updated Oct. 4, 2013, 10:55 a.m.</i></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Changes</h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Committed in revision 400522</pre>
  </td>
 </tr>
</table>





<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="https://issues.asterisk.org/jira/browse/ASTERISK-22451">ASTERISK-22451</a>


</div>



<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
Asterisk
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This patch adds an /applications API to ARI, allowing explicit management of
Stasis applications.

 * GET /applications - list current applications
 * GET /applications/{applicationName} - get details of a specific application
 * POST /applications/{applicationName}/subscription - explicitly subscribe to
   a channel, bridge or endpoint
 * DELETE /applications/{applicationName}/subscription - explicitly unsubscribe
   from a channel, bridge or endpoint

Subscriptions work by a reference counting mechanism: if you subscript to an
event source X number of times, you must unsubscribe X number of times to stop
receiveing events for that event source.
</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Testsuite tests (https://reviewboard.asterisk.org/r/2863/)

I hit a roadblock testing the endpoint subscription code, so that was tested
manually using wscat and Swagger-UI.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>/branches/12/include/asterisk/_private.h <span style="color: grey">(399236)</span></li>

 <li>/branches/12/include/asterisk/endpoints.h <span style="color: grey">(399236)</span></li>

 <li>/branches/12/include/asterisk/stasis_app.h <span style="color: grey">(399236)</span></li>

 <li>/branches/12/main/asterisk.c <span style="color: grey">(399236)</span></li>

 <li>/branches/12/main/endpoints.c <span style="color: grey">(399236)</span></li>

 <li>/branches/12/main/json.c <span style="color: grey">(399236)</span></li>

 <li>/branches/12/res/ari.make <span style="color: grey">(399236)</span></li>

 <li>/branches/12/res/ari/ari_model_validators.h <span style="color: grey">(399236)</span></li>

 <li>/branches/12/res/ari/ari_model_validators.c <span style="color: grey">(399236)</span></li>

 <li>/branches/12/res/ari/resource_applications.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/branches/12/res/ari/resource_applications.c <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/branches/12/res/ari/resource_endpoints.h <span style="color: grey">(399236)</span></li>

 <li>/branches/12/res/res_ari_applications.c <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/branches/12/res/res_ari_model.c <span style="color: grey">(399236)</span></li>

 <li>/branches/12/res/res_stasis.c <span style="color: grey">(399236)</span></li>

 <li>/branches/12/res/stasis/app.h <span style="color: grey">(399236)</span></li>

 <li>/branches/12/res/stasis/app.c <span style="color: grey">(399236)</span></li>

 <li>/branches/12/rest-api-templates/ari_model_validators.h.mustache <span style="color: grey">(399236)</span></li>

 <li>/branches/12/rest-api/api-docs/applications.json <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/branches/12/rest-api/api-docs/endpoints.json <span style="color: grey">(399236)</span></li>

 <li>/branches/12/rest-api/api-docs/events.json <span style="color: grey">(399236)</span></li>

 <li>/branches/12/rest-api/resources.json <span style="color: grey">(399236)</span></li>

</ul>

<p><a href="https://reviewboard.asterisk.org/r/2862/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>




  </div>
 </body>
</html>