<p></p>
<p>The function lookup_to_dset() is a config command implemented inside the registrar module.</p>
<p><a href="https://github.com/kamailio/kamailio/blob/351efd29d332703e79104a106ade08c9d1df6e20/src/modules/registrar/registrar.c#L183">https://github.com/kamailio/kamailio/blob/351efd29d332703e79104a106ade08c9d1df6e20/src/modules/registrar/registrar.c#L183</a></p>
<p>As you can see from the link above, It triggers w_lookup_to_dset() and it ends up calling lookup_helper() with the mode flag set to zero that causes lookup_helper() to not overwrite the request uri (and destination uri if it's the case).</p>
<p>For me it's worth documenting lookup_to_dset() inside modules/registrar/README file, this function it was very useful to me and I found out about it only digging into the code.</p>
<p>Thanks</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/issues/2623">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIBVZJITQRFHC3WRUTS5JNHRANCNFSM4XCM54AQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPDYBNMEBVDJ6LP4OLS5JNHRA5CNFSM4XCM54A2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4L57IUAA.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/issues/2623",
"url": "https://github.com/kamailio/kamailio/issues/2623",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>