<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14444">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: Use correct pool for storing the contact_user value.<br><br>When replacing the user portion of the Contact URI the code<br>was using the ephemeral pool instead of the tdata pool. This<br>could cause the Contact user value to become invalid after a<br>period of time.<br><br>The code will now use the tdata pool which persists for the<br>lifetime of the message instead.<br><br>ASTERISK-28794<br><br>Change-Id: I31e7b958e397cbdaeedd0ebb70bcf8dd2ed3c4d5<br>---<br>M res/res_pjsip.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip.c b/res/res_pjsip.c</span><br><span>index de2a4e2..a595749 100644</span><br><span>--- a/res/res_pjsip.c</span><br><span>+++ b/res/res_pjsip.c</span><br><span>@@ -3695,7 +3695,7 @@</span><br><span> contact_hdr = pjsip_msg_find_hdr_by_names((*tdata)->msg, &HCONTACT, &HCONTACTSHORT, NULL);</span><br><span> if (contact_hdr) {</span><br><span> contact_uri = pjsip_uri_get_uri(contact_hdr->uri);</span><br><span style="color: hsl(0, 100%, 40%);">- pj_strdup2(pool, &contact_uri->user, endpoint->contact_user);</span><br><span style="color: hsl(120, 100%, 40%);">+ pj_strdup2((*tdata)->pool, &contact_uri->user, endpoint->contact_user);</span><br><span> }</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14444">change 14444</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/+/14444"/><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-Change-Id: I31e7b958e397cbdaeedd0ebb70bcf8dd2ed3c4d5 </div>
<div style="display:none"> Gerrit-Change-Number: 14444 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>