<p></p>
<p><b>@miconda</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2617#discussion_r569426884">src/modules/pua_dialoginfo/dialog_publish.c</a>:</p>
<pre style='color:#555'>> @@ -188,6 +188,8 @@ str* build_dialoginfo(char *state, str *entity, str *peer, str *callid,
                        LM_ERR("while adding child\n");
                        goto error;
                }
+               /* Testing(POC) - Add a display attribute to the remote/identity tag */
+               xmlNewProp(tag_node, BAD_CAST "display", BAD_CAST "RemoteCallerName");      
</pre>
<p>I understand that you want the user part from SIP URI set in identity tag, then practically you have to parse it with parse_uri() function, which fills a structure with a field point to user part. Like:</p>
<pre><code>parse_uri(remotetarget->s, remotetarget->len, &puri);
</code></pre>
<p>Then use <code>puri.user.s</code> and <code>puri.user.len</code>, which point to the start of user part and give the length. Similar will be for localtarget part.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2617#pullrequestreview-582380703">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLXHOAXVKQ2YZT4XTDS5FICHANCNFSM4W5OVJKA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKWHAWK63S3BH4R43DS5FICHA5CNFSM4W5OVJKKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEK3GZHY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2617#pullrequestreview-582380703",
"url": "https://github.com/kamailio/kamailio/pull/2617#pullrequestreview-582380703",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>