<div>
<style type="text/css">
.successful a, .successful a:visited, .successful a:link, .successful a:hover,.successful  a:active {color:#393}
.failed a, .failed a:visited, .failed a:link, .failed a:hover,.failed  a:active {color:#d62829}
.notexecuted a, .notexecuted a:visited, .notexecuted a:link, .notexecuted a:hover,.notexecuted  a:active {color:#ffcc66}
td a, td a:link, td a:visited, td a:hover, td a:active {background:transparent;font-family: Arial, sans-serif;text-decoration:underline;}
td a:link {color:#369;}
td a:visited {color:#444;}
td a:hover, td a:active {color:#036;}
td a:hover {text-decoration:none;}
</style>
<font size="2" color="black" face="Arial, Helvetica, sans-serif" style="font-family: Arial, sans-serif;font-size: 13px;color:#000">
<table align="center" border="0" cellpadding="5" cellspacing="0" width="98%">

<tr>
        <td style="vertical-align:top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#e4f5e3;border-top:1px solid #b4e2b4;border-bottom:1px solid #b4e2b4;color:#393;">
                        <tr>
                                <td width="20" style="vertical-align:top;padding:5px 0 5px 10px">
                                        <img src="http://bamboo.asterisk.org/images/jt/icn_plan_passed.gif" width="15" height="15">
                                </td>
                                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#393;padding:5px 10px">
      <a href="http://bamboo.asterisk.org/browse/AST18/" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#393">Asterisk - 1.8</a> &gt;
      <a href="http://bamboo.asterisk.org/browse/AST18-LUCID/" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#393">Ubuntu Lucid (10.04)</a> &gt;
      <a href="http://bamboo.asterisk.org/browse/AST18-LUCID-188/" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#393">#188</a>
                                        <span class="successful" style="font-family: Arial, sans-serif; font-size: 14px;"> was successful.</span>
                    <span class="successful" style="font-family: Arial, sans-serif; font-size: 13px;">
                    <br/>Code has been updated by <a href="http://bamboo.asterisk.org/browse/user/russell">Russell Bryant</a>.
<br/>All <strong>2</strong> jobs passed with <strong>194</strong> tests in total.                    </span>
                </td>
                        </tr>
        </table>
                <br>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#ecf1f7;border-top:1px solid #bbd0e5;border-bottom:1px solid #bbd0e5;color:#036;">
        <tr>
            <td width="60%" style="font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036;padding:5px 10px">
                <a href="http://bamboo.asterisk.org/browse/AST18-LUCID-188/commit/" style="text-decoration: none; font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036" >Code Changes</a>
            </td>
            <td width="40%" style="font-family: Arial, sans-serif;text-align:right;font-size:13px;color:#036;padding:5px 10px">
                <a href="http://bamboo.asterisk.org/browse/AST18-LUCID-188/commit/" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">See full change details</a><img src="http://bamboo.asterisk.org/images/icons/more.gif" width="15" height="15" style="vertical-align:middle;padding:2px">
            </td>
        </tr>
   </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr><td width="20" style="vertical-align:top;padding:10px 0 0px 10px">
                        <img src="http://bamboo.asterisk.org/images/icons/businessman.gif" width="15" height="15">
                    </td>
                    <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;vertical-align:top;padding:10px 10px 0px 10px">
                        <a href="http://bamboo.asterisk.org/browse/user/russell" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                           Russell Bryant</a><br>
                        Merged revisions 303548 via svnmerge from <br/>
<a href="https://origsvn.digium.com/svn/asterisk/branches/1.6.2">https://origsvn.digium.com/svn/asterisk/branches/1.6.2</a><br/>
<br/>
................<br/>
&nbsp;&nbsp;r303548 | russell | 2011-01-24 14:49:53 -0600 (Mon, 24 Jan 2011) | 38 lines<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Merged revisions 303546 via svnmerge from <br/>
&nbsp;&nbsp;<a href="https://origsvn.digium.com/svn/asterisk/branches/1.4">https://origsvn.digium.com/svn/asterisk/branches/1.4</a><br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;........<br/>
&nbsp;&nbsp;&nbsp;&nbsp;r303546 | russell | 2011-01-24 14:32:21 -0600 (Mon, 24 Jan 2011) | 31 lines<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Fix channel redirect out of MeetMe() and other issues with channel softhangup.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Mantis issue #18585 reports that a channel redirect out of MeetMe() stopped<br/>
&nbsp;&nbsp;&nbsp;&nbsp;working properly.&nbsp; This issue includes a patch that resolves the issue by<br/>
&nbsp;&nbsp;&nbsp;&nbsp;removing a call to ast_check_hangup() from app_meetme.c.&nbsp; I left that in my<br/>
&nbsp;&nbsp;&nbsp;&nbsp;patch, as it doesn't need to be there.&nbsp; However, the rest of the patch fixes<br/>
&nbsp;&nbsp;&nbsp;&nbsp;this problem with or without the change to app_meetme.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;The key difference between what happens before and after this patch is the<br/>
&nbsp;&nbsp;&nbsp;&nbsp;effect of the END_OF_Q control frame.&nbsp; After END_OF_Q is hit in ast_read(),<br/>
&nbsp;&nbsp;&nbsp;&nbsp;ast_read() will return NULL.&nbsp; With the ast_check_hangup() removed, app_meetme<br/>
&nbsp;&nbsp;&nbsp;&nbsp;sees this which causes it to exit as intended.&nbsp; Checking ast_check_hangup()<br/>
&nbsp;&nbsp;&nbsp;&nbsp;caused app_meetme to exit earlier in the process, and the target of the<br/>
&nbsp;&nbsp;&nbsp;&nbsp;redirect saw the condition where ast_read() returned NULL.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Removing ast_check_hangup() works around the issue in app_meetme, but doesn't<br/>
&nbsp;&nbsp;&nbsp;&nbsp;solve the issue if another application did the same thing.&nbsp; There are also<br/>
&nbsp;&nbsp;&nbsp;&nbsp;other edge cases where if an application finishes at the same time that a<br/>
&nbsp;&nbsp;&nbsp;&nbsp;redirect happens, the target of the redirect will think that the channel hung<br/>
&nbsp;&nbsp;&nbsp;&nbsp;up.&nbsp; So, I made some changes in pbx.c to resolve it at a deeper level.&nbsp; There<br/>
&nbsp;&nbsp;&nbsp;&nbsp;are already places that unset the SOFTHANGUP_ASYNCGOTO flag in an attempt to<br/>
&nbsp;&nbsp;&nbsp;&nbsp;abort the hangup process.&nbsp; My patch extends this to remove the END_OF_Q frame<br/>
&nbsp;&nbsp;&nbsp;&nbsp;from the channel's read queue, making the &quot;abort hangup&quot; more complete.&nbsp; This<br/>
&nbsp;&nbsp;&nbsp;&nbsp;same technique was used in every place where a softhangup flag was cleared.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;(closes issue #18585)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Reported by: oej<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Tested by: oej, wedhorn, russell<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Review: <a href="https://reviewboard.asterisk.org/r/1082/">https://reviewboard.asterisk.org/r/1082/</a><br/>
&nbsp;&nbsp;........<br/>
................<br/>

                    </td>
                    <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                         (303549)
                    </td></tr>
    </table><br>

    </td>
    <td width="150" style="vertical-align:top">
    <table width="150" border="0" cellpadding="0" cellspacing="0" style="background-color:#ecf1f7;border-top:1px solid #bbd0e5;border-bottom:1px solid #bbd0e5;color:#036;">
        <tr>
            <td style="font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036;vertical-align:top;padding:5px 10px">
                Actions
            </td>
        </tr>
    </table>
    <table width="150" border="0" cellpadding="0" cellspacing="0" style="background-color:#f5f9fc;border-bottom:1px solid #bbd0e5;">
        <tr>
            <td style="font-family: Ariel, sans-serif; font-size: 13px; color:#036;vertical-align:top;padding:5px 10px;line-height:1.7">
    <a href="http://bamboo.asterisk.org/browse/AST18-LUCID-188" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">View Online</a>
    <br>
    <a href="http://bamboo.asterisk.org/browse/AST18-LUCID-188?commentMode=true" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">Add Comments</a>
    <br>
            </td>
        </tr>
    </table>
    </td>
</tr>
<tr>
    <td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td colspan="2" align="center" style="font-family: Arial, sans-serif;text-align:center;font-size:11px;font-weight:bold;color:#999;vertical-align:top;padding:20px">
        Email generated by <a href="http://bamboo.asterisk.org" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">Atlassian Bamboo</a> - if you wish to stop receiving these emails edit your  <a href="http://bamboo.asterisk.org/profile/userNotifications.action" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">user profile</a> or <a href="http://bamboo.asterisk.org/viewAdministrators.action" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">notify your administrator</a>
    </td>
    </tr>
</table>
    </td>
</tr>
</table>
</font>
</div>