<p></p>
<p>Thanks for this contribution!</p>
<p>However, wouldn't it be better to use <code>parse_sip_msg_uri()</code> so <code>_m->new_uri</code> or <code> _m->first_line.u.request.uri</code> is parsed in the <code>_m->parsed_uri</code> field and then just build the AoR using <code>_m->parsed_uri.user</code> and <code>_m->parsed_uri.host</code>?</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/2287#issuecomment-614714429">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLNTILOS7IHNVE5ARLRM4N4VANCNFSM4MJX6FQA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPBO3WR52RKW62ZRFTRM4N4VA5CNFSM4MJX6FQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOESR4YPI.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/2287#issuecomment-614714429",
"url": "https://github.com/kamailio/kamailio/pull/2287#issuecomment-614714429",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>