<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19003">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span></span><br></pre><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_tonedetect: Fix typos referring to wrong variables.<br><br>Fixes two typos that cause fax detection to not work.<br>One refers to the wrong frame variable, and the other<br>refers to the subclass.integer instead of the frametype<br>as it should.<br><br>ASTERISK-30192 #close<br><br>Change-Id: I7b35fdb7bcf25a29a212eee37c20812c64ab3ef1<br>---<br>M res/res_tonedetect.c<br>1 file changed, 18 insertions(+), 2 deletions(-)<br><br></pre>
<pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_tonedetect.c b/res/res_tonedetect.c</span><br><span>index ec5f784..c02eeeb 100644</span><br><span>--- a/res/res_tonedetect.c</span><br><span>+++ b/res/res_tonedetect.c</span><br><span>@@ -940,8 +940,8 @@</span><br><span> } else if (fax) {</span><br><span> char result;</span><br><span> frame2 = ast_dsp_process(chan, dsp2, frame2);</span><br><span style="color: hsl(0, 100%, 40%);">- result = frame->subclass.integer;</span><br><span style="color: hsl(0, 100%, 40%);">- if (result == AST_FRAME_DTMF) {</span><br><span style="color: hsl(120, 100%, 40%);">+ result = frame2->subclass.integer;</span><br><span style="color: hsl(120, 100%, 40%);">+ if (frame2->frametype == AST_FRAME_DTMF) {</span><br><span> if (result == 'e') {</span><br><span> pbx_builtin_setvar_helper(chan, "TONESCANSTATUS", "FAX");</span><br><span> match = 1;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19003">change 19003</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/+/19003"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I7b35fdb7bcf25a29a212eee37c20812c64ab3ef1 </div>
<div style="display:none"> Gerrit-Change-Number: 19003 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.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@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>