<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7010">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/10/7010/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 e2c6f6c..11c6b09 100644<br>--- a/res/res_pjsip_pubsub.c<br>+++ b/res/res_pjsip_pubsub.c<br>@@ -2463,9 +2463,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/7010">change 7010</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/7010"/><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: If1d0cd6630f0a264856d31d2a67933109187a017 </div>
<div style="display:none"> Gerrit-Change-Number: 7010 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>