<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}
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:#ffe6e7;border-top:1px solid #eec0c0;border-bottom:1px solid #eec0c0;color:#d62829;">
        <tr>
        <td width="20" style="vertical-align:top;padding:5px 0 5px 10px">
            <img src="http://bamboo.asterisk.org/images/jt/icn_plan_failed.gif" width="15" height="15">
        </td>
        <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#d62829;padding:5px 10px">
            <a href="http://bamboo.asterisk.org/browse/AST-160-119/" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#d62829">AST-160-119</a>
            <span class="failed" style="font-family: Arial, sans-serif; font-size: 14px;">failed.</span>
            <span class="failed" style="font-family: Arial, sans-serif; font-size: 13px;">
            <br/>Code has been updated by <a href="http://bamboo.asterisk.org/browse/author/mmichelson">mmichelson</a>.
                <br/><strong>1/3</strong> tests failed.
            </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/AST-160-119/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/AST-160-119/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/author/mmichelson" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                           mmichelson</a><br>
                        Recorded merge of revisions 254454 via svnmerge from <br/>
<a href="https://origsvn.digium.com/svn/asterisk/trunk">https://origsvn.digium.com/svn/asterisk/trunk</a><br/>
<br/>
................<br/>
&nbsp;&nbsp;r254454 | mmichelson | 2010-03-25 11:04:48 -0500 (Thu, 25 Mar 2010) | 50 lines<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Recorded merge of revisions 254452 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;r254452 | mmichelson | 2010-03-25 10:59:56 -0500 (Thu, 25 Mar 2010) | 44 lines<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Several fixes regarding RFC2833 DTMF detection.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Here is a copy and paste of the details from my request on<br/>
&nbsp;&nbsp;&nbsp;&nbsp;reviewboard that dealt with these changes:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Fix 1. The first change in place is to fix Mantis issue 15811, which deals with a situation where Asterisk will incorrectly interpret out of order RFC2833 frames as duplicate DTMF digits. For instance, we would receive a sequence like:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 1: DTMF 1<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 2: DTMF 1<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 3: DTMF 1<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 4: DTMF 1<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 6: DTMF 1 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 5: DTMF 1<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 7: DTMF 1 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 8: DTMF 1 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Prior to this patch when we received the frame with seqno 5, we would interpret this as a new DTMF 1. With this patch, we will check the seqno of the incoming digit and not process the frame if the seqno is lower than the last recorded seqno. Note that we do not record the seqno of the dropped DTMF frame for future processing. While the above situation is what was designed to be fixed, the patch is written in such a way that the following would also be fixed too:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno&nbsp; 9: DTMF 1<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 10: DTMF 1 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 11: DTMF 1 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 13: DTMF 2<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 12: DTMF 1 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 14: DTMF 2<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 15: DTMF 2 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 16: DTMF 2 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 17: DTMF 2 (end)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;In this second situation, the beginning of the DTMF 2 arrives before the final end frame of the DTMF 1. With the patch, seqno 12 is no processed and thus we properly interpret the DTMF.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Fix 2. The second change in place is to fix an issue like the following:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 1: DTMF 1<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 2: DTMF 1<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 3: DTMF 1 (end) *packet lost*<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 4: DTMF 1 (end) *packet lost*<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 5: DTMF 1 (end) *packet lost*<br/>
&nbsp;&nbsp;&nbsp;&nbsp;seqno 6: DTMF 2<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;When we receive seqno 6, we had code in place that was supposed to properly end the previously unended DTMF 1. The problem was that the code was essentially a no-op. The code would set up an end frame for the DTMF 1 but would immediately overwrite the frame with the begin for DTMF 2. I changed process_dtmf_rfc2833() so that instead of returning a single frame, it is given as an output parameter a list of frames. Each frame that needs to be returned is appended to this list.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;Fix 3. The final change is a minor one where an AST_CONTROL_SRCCHANGE frame could get lost. If we process a cisco DTMF or an RFC 3389 frame and no frame was returned, then we would return &amp;ast_null_frame. The problem is that earlier in the function, we may have generated an AST_CONTROL_SRCCHANGE frame and put it in the list of frames we wish to return. This frame would be lost in such a case. The patch fixes this problem<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">
                         (254455)
                    </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;vertical-align:top;padding:5px 10px">
                        <a href="http://bamboo.asterisk.org/browse/AST-160-119/test" style="text-decoration: none; font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036" >Tests</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/AST-160-119/test" style="font-family: Arial, sans-serif; font-size: 13px;color:#036">See full test 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 colspan="2" width="100%" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000;vertical-align:top;padding:10px 0 0 10px">
                            Failed Tests (1)
                        </td>
                    </tr>
<tr>
<td width="20" style="vertical-align:top;padding:5px 0 5px 10px">
<img src="http://bamboo.asterisk.org/images/jt/icn_plan_failed.gif" width="15" height="15">
</td>
<td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;vertical-align:top;padding:5px 10px">
<a href="http://bamboo.asterisk.org/browse/AST-160-119/test/AsteriskTestSuite" style="font-family: Arial, sans-serif; font-size: 13px;color:#000">AsteriskTestSuite</a> :
<a href="http://bamboo.asterisk.org/browse/AST-160-119/test/AsteriskTestSuite:rfc2833_dtmf_detect" style="font-family: Arial, sans-serif; font-size: 13px;color:#000">Rfc2833 dtmf detect</a>
<span style="color:#999">(New)</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/AST-160-119/log" style="text-decoration: none; font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036" >Error Summary</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/AST-160-119/log" style="font-family: Arial, sans-serif; font-size: 13px;color:#036">See full build log</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" style="background-color:#f2f2f2;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;color:#000;margin-top:5px;padding:10px">
               <tr>
                <td width="100%" style="font-family:'Courier New', Courier, monospace; font-size: 12px; color:#000;vertical-align:top">
                    src/lfs.c: In function 'lfs_g_setmode':<br/>
                </td>
                </tr>
               <tr>
                <td width="100%" style="font-family:'Courier New', Courier, monospace; font-size: 12px; color:#000;vertical-align:top">
                    src/lfs.c:235: warning: unused parameter 'f'<br/>
                </td>
                </tr>
               <tr>
                <td width="100%" style="font-family:'Courier New', Courier, monospace; font-size: 12px; color:#000;vertical-align:top">
                    src/lfs.c:235: warning: unused parameter 'arg'<br/>
                </td>
                </tr>
            </table>
            <br />

        <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;padding-bottom:10px">
                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>
            <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">
                <a href="http://www.atlassian.com/software/ideconnector/" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">Want this information in your IDE?</a>
            </td></tr>
        </table>
    </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/AST-160-119/" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">View Online</a>
                    <br>
                    <a href="http://bamboo.asterisk.org/browse/AST-160-119/comment" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">Add Comments</a>
                    <br>
                    <a href="http://bamboo.asterisk.org/browse/AST-160-119/artifact" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">View Artifacts</a>
                    <br>
                    <a href="http://bamboo.asterisk.org/download/AST-160/build_logs/AST-160-119.log" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">Download Logs</a>
                    <br>
                </td>
            </tr>
        </table>
    </td>
<tr>
</table>
</font>
</div>