<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7012">View Change</a></p><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, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/12/7012/1</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..b3afbb1 100644<br>--- a/res/res_pjsip_pubsub.c<br>+++ b/res/res_pjsip_pubsub.c<br>@@ -2441,9 +2441,11 @@<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>+        pjsip_uri_print(PJSIP_URI_IN_FROMTO_HDR, uri, buf, size);<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/7012">change 7012</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/7012"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If1d0cd6630f0a264856d31d2a67933109187a017 </div>
<div style="display:none"> Gerrit-Change-Number: 7012 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>