<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17888">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Sean Bright: 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_rtp_asterisk: Fix typo in flag test/set<br><br>The code currently checks to see if an RFC3389<br>warning flag is set, except if it is, it merely<br>sets the flag again, the logic of which doesn't<br>make any sense.<br><br>This adjusts the if comparison to check if the<br>flag has NOT been set, and if so, emit a notice<br>log event and set the flag so that future frames<br>do not cause an event to be logged.<br><br>ASTERISK-29856 #close<br><br>Change-Id: Ib7098c947c63537d087a03b4646199fbb963f8e1<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c</span><br><span>index f810501..da50072 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -5757,7 +5757,7 @@</span><br><span> ast_format_get_name(rtp->lastrxformat), len);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- if (ast_test_flag(rtp, FLAG_3389_WARNING)) {</span><br><span style="color: hsl(120, 100%, 40%);">+ if (!ast_test_flag(rtp, FLAG_3389_WARNING)) {</span><br><span> struct ast_sockaddr remote_address = { {0,} };</span><br><span> </span><br><span> ast_rtp_instance_get_remote_address(instance, &remote_address);</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17888">change 17888</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/+/17888"/><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: Ib7098c947c63537d087a03b4646199fbb963f8e1 </div>
<div style="display:none"> Gerrit-Change-Number: 17888 </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-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>