<p style="white-space: pre-wrap; word-wrap: break-word;">I have tested this change and found AMD detection working fine, please check if re-including AST_FRAME_NULL in AMD algorithm, is OK? </p><p style="white-space: pre-wrap; word-wrap: break-word;">If you are concerned about existing "TOOLONG" bug mentioned in ASTERISK-27610, then please note that excluding AST_FRAME_NULL from AMD algorithm was unnecessary, because following lines which add manual calculation of elapsed time was enough to fix that bug.</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">           int ms = 0;</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">           /* Figure out how long we waited */<br>           if (res >= 0) {<br>                    ms = 2 * maxWaitTimeForFrame - res;<br>           }</pre><p style="white-space: pre-wrap; word-wrap: break-word;">and then using elapsed time as framelength</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">                framelength = ms;</pre><p style="white-space: pre-wrap; word-wrap: break-word;">So I don't see any issue by re-including AST_FRAME_NULL</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11394">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11394">change 11394</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/11394"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I16ea2d6295bc99b975e8c092e5f9fbd9214debdb </div>
<div style="display:none"> Gerrit-Change-Number: 11394 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nasir Iqbal <nasir@ictinnovations.com> </div>
<div style="display:none"> Gerrit-Reviewer: Abhay Gupta <abhay@avissol.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Nasir Iqbal <nasir@ictinnovations.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 25 May 2019 23:13:43 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>