<p>Torrey Searle has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/11038">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_rtp_asterisk: smoother can cause wrong timestames if dtmf happen<br><br>Delivery timeval in the smoother object will fall behind while a DTMF is<br>being generated.  This can eventually lead to invalid rtp timestamps.<br>To prevent this from happening the smoother needs to be reset after every<br>DTMF to keep the timing up to date.<br><br>ASTERISK-28303 #close<br><br>Change-Id: Iaba3f7b428ebd72a4caa90e13b829ab4f088310f<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/38/11038/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 8fc52a0..c5d557e 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -3566,6 +3566,12 @@</span><br><span> </span><br><span>         /* Oh and we can't forget to turn off the stuff that says we are sending DTMF */</span><br><span>         rtp->lastts += calc_txstamp(rtp, NULL) * DTMF_SAMPLE_RATE_MS;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+    /* Reset the smoother as the delivery time stored in it is now out of date */</span><br><span style="color: hsl(120, 100%, 40%);">+ if (rtp->smoother) {</span><br><span style="color: hsl(120, 100%, 40%);">+               ast_smoother_free(rtp->smoother);</span><br><span style="color: hsl(120, 100%, 40%);">+          rtp->smoother = NULL;</span><br><span style="color: hsl(120, 100%, 40%);">+      }</span><br><span> cleanup:</span><br><span>        rtp->sending_digit = 0;</span><br><span>   rtp->send_digit = 0;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/11038">change 11038</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/11038"/><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: Iaba3f7b428ebd72a4caa90e13b829ab4f088310f </div>
<div style="display:none"> Gerrit-Change-Number: 11038 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Torrey Searle <tsearle@gmail.com> </div>