<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19006">View Change</a></p><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, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/19006/1</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/+/19006">change 19006</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/+/19006"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 20 </div>
<div style="display:none"> Gerrit-Change-Id: I7b35fdb7bcf25a29a212eee37c20812c64ab3ef1 </div>
<div style="display:none"> Gerrit-Change-Number: 19006 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>