<p>Friendly Automation <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11043">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Sean Bright: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_rtp_asterisk: smoother can cause wrong timestamps 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;"><span>diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c</span><br><span>index c206497..84b2088 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -3957,6 +3957,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/c/asterisk/+/11043">change 11043</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/+/11043"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iaba3f7b428ebd72a4caa90e13b829ab4f088310f </div>
<div style="display:none"> Gerrit-Change-Number: 11043 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Torrey Searle <tsearle@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>