<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7011">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_pubsub: Ensure remote URI contains URI only.<br><br>This change makes it so that any user of the pubsub<br>API that requests the remote URI receives only the URI.<br>Previously the entire string was returned, which could<br>contain a display name.<br><br>ASTERISK-27290<br><br>Change-Id: If1d0cd6630f0a264856d31d2a67933109187a017<br>---<br>M res/res_pjsip_pubsub.c<br>1 file changed, 6 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c<br>index 62b1879..274b038 100644<br>--- a/res/res_pjsip_pubsub.c<br>+++ b/res/res_pjsip_pubsub.c<br>@@ -2441,9 +2441,14 @@<br> void ast_sip_subscription_get_remote_uri(struct ast_sip_subscription *sub, char *buf, size_t size)<br> {<br>      pjsip_dialog *dlg;<br>+   pjsip_sip_uri *uri;<br> <br>        dlg = sub->tree->dlg;<br>-  ast_copy_pj_str(buf, &dlg->remote.info_str, size);<br>+    uri = pjsip_uri_get_uri(dlg->remote.info->uri);<br>+<br>+     if (pjsip_uri_print(PJSIP_URI_IN_FROMTO_HDR, uri, buf, size) < 0) {<br>+               *buf = '\0';<br>+ }<br> }<br> <br> const char *ast_sip_subscription_get_resource_name(struct ast_sip_subscription *sub)<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7011">change 7011</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/7011"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: If1d0cd6630f0a264856d31d2a67933109187a017 </div>
<div style="display:none"> Gerrit-Change-Number: 7011 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>