<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6104">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_session: Release media resources on session end quicker.<br><br>A change was made long ago where the session was kept around<br>until the underlying INVITE session had been destroyed. This<br>had the side effect of also keeping the underlying media resources<br>around for this time as well.<br><br>This change ensures that when we know the session is ending we<br>release the media resources immediately.<br><br>ASTERISK-27110<br><br>Change-Id: I3c6a82fe7d2c50b9dc9197cb12ef22f20d337501<br>---<br>M res/res_pjsip_session.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/04/6104/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c<br>index aedf3f6..f8b50ac 100644<br>--- a/res/res_pjsip_session.c<br>+++ b/res/res_pjsip_session.c<br>@@ -2552,6 +2552,11 @@<br>                        iter->session_end(session);<br>                }<br>     }<br>+<br>+ /* Release any media resources. */<br>+   ao2_cleanup(session->media);<br>+      session->media = NULL;<br>+<br>  return 0;<br> }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6104">change 6104</a>. To unsubscribe, 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/6104"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 14 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I3c6a82fe7d2c50b9dc9197cb12ef22f20d337501 </div>
<div style="display:none"> Gerrit-Change-Number: 6104 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>