<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/4046/">https://reviewboard.asterisk.org/r/4046/</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;">Code looks good and I confirmed that the patch fixes the behavior I noted on the issue. Ship it, ship it good.</pre>
 <br />









<p>- Jonathan Rose</p>


<br />
<p>On October 2nd, 2014, 4:35 p.m. CDT, rmudgett 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.</div>
<div>By rmudgett.</div>


<p style="color: grey;"><i>Updated Oct. 2, 2014, 4:35 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-24195">ASTERISK-24195</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;">Adding a mixmonitor to a channel causes the bridge to change technologies from native to simple_bridge so the call can be recorded.  However, when the mixmonitor is stopped the bridge does not switch back to the native technology.

* Added unbridge requests to reevaluate the bridge when a channel audiohook is removed.

* Moved the unbridge request into ast_audiohook_attach() ensure that the bridge reevaluates whenever an audiohook is attached.  This simplified the mixmonitor and chan_spy start code as well.

* Added defensive code to stop_mixmonitor_full() in case additional arguments are ever added to the StopMixMonitor application.

* Made ast_framehook_detach() not do an unbridge request if the framehook does not exist.

* Made ast_framehook_list_fixup() do an unbridge request if there are any framehooks.  Also simplified the loop.</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;">1 Made SIP A call SIP B such that directmedia was possible.
2 Added a MixMonitor recorder to SIP A using AMI MixMonitor action.
3 The bridge technology changed to simple_bridge
4 Stopped the MixMonitor recorder using AMI StopMixMonitor action.
5 The bridge technology now changes to native with the patch.</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/main/framehook.c <span style="color: grey">(424382)</span></li>

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

 <li>/branches/12/apps/app_mixmonitor.c <span style="color: grey">(424382)</span></li>

 <li>/branches/12/apps/app_chanspy.c <span style="color: grey">(424382)</span></li>

</ul>

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







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








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