<p>Torrey Searle has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10989">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_rtp_asterisk: clear smoother when updating txformat in p2p_write<br><br>p2p_write updates txformat, if the smoother is not destroied the format<br>expected by the smoother can fall out of sync with the currently used<br>format in the bridge.  This can lead to one way audio issues.<br><br>ASTERISK-28284 #close<br><br>Change-Id: I84e67f144963787fff9b4d79ac500514fb40cdc6<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 5 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/89/10989/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 77eba21..0226076 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -5227,6 +5227,11 @@</span><br><span>               }</span><br><span> </span><br><span>                ao2_replace(bridged->lasttxformat, payload_type->format);</span><br><span style="color: hsl(120, 100%, 40%);">+               /* always remove the smoother when updating lasttxformat */</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>    }</span><br><span> </span><br><span>        ast_rtp_instance_get_remote_address(instance1, &remote_address);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10989">change 10989</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/10989"/><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: I84e67f144963787fff9b4d79ac500514fb40cdc6 </div>
<div style="display:none"> Gerrit-Change-Number: 10989 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Torrey Searle <tsearle@gmail.com> </div>