<p>Emmanuel BUU has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9979">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_rtp_asterisk: remove debug traces generated by an empty frame<br><br>The realtime text timer pops regularily and sends text frames even if<br>buffer is empty. This causes a a lot of unecessary traces. The fix<br>test if we need to send a frame before calling ast_rtp_write()<br><br>ASTERISK-28002<br>Reported by: Emmanuel BUU<br>Tested by: Emmanuel BUU<br><br>Change-Id: Icf81310c3b8080b615a42060afc02ab41f9523dd<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/79/9979/1</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 6f7e09e..e562627 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -6058,7 +6058,9 @@</span><br><span> struct ast_rtp *rtp = ast_rtp_instance_get_data(instance);</span><br><span> </span><br><span> ao2_lock(instance);</span><br><span style="color: hsl(0, 100%, 40%);">- ast_rtp_write(instance, &rtp->red->t140);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (rtp->red->t140.datalen > 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_rtp_write(instance, &rtp->red->t140);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span> ao2_unlock(instance);</span><br><span> </span><br><span> return 1;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9979">change 9979</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/9979"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Icf81310c3b8080b615a42060afc02ab41f9523dd </div>
<div style="display:none"> Gerrit-Change-Number: 9979 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Emmanuel BUU <emmanuel.buu@ives.fr> </div>