<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/4213/">https://reviewboard.asterisk.org/r/4213/</a>
     </td>
    </tr>
   </table>
   <br />



 <p>Ship it!</p>



 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Ship It!</pre>
 <br />









<p>- Matt Jordan</p>


<br />
<p>On December 2nd, 2014, 1:34 p.m. CST, opticron wrote:</p>








<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.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Asterisk Developers and Mark Michelson.</div>
<div>By opticron.</div>


<p style="color: grey;"><i>Updated Dec. 2, 2014, 1:34 p.m.</i></p>







<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-24537">ASTERISK-24537</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 corrects several bugs that currently exist in the 12/13/trunk stasis application code.

* After a masquerade, the resulting channels have channel topics that do not match their uniqueids
** Masquerades now swap channel topics appropriately
* StasisStart and StasisEnd messages are leaked to observer applications due to being published on channel topics
** StasisStart and StasisEnd publishing is now properly restricted to controlling apps via app topics
* Race conditions exist where StasisStart and StasisEnd messages due to a masquerade may be received out of order due to being published on different topics
** These messages are now published directly on the app topic so this is now a non-issue
* StasisEnds are sometimes missing when sent due to masquerades and bridge swaps into and out of Stasis()
** This was due to StasisEnd processing adjusting message-sent flags after Stasis() had already exited and Stasis() had been re-entered
** This was corrected by adjusting these flags prior to sending the message while the initial Stasis() application was still shutting down</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;">Ran existing ARI tests and a few new ones that are in-progress along with the scenarios that originally found these issues.</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/res/stasis/stasis_bridge.c <span style="color: grey">(428504)</span></li>

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

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

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

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

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

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

</ul>

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







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








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