<p>lookup function has an optional uri param for looking up based on that param.<br>
lookup_to_dset is used if we don't want to overwritte the Request-URI but there is option to lookup based on a uri.</p>
<p>during tests i noticed that the append_branch was being called when i did a lookup_to_dset("location", "$fu") and kamailio exited because of that.</p>
<p>i made the append_branch to depend on the _mode ( 0 = lookup ) which seemed to fixed.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/kamailio/kamailio/pull/84'>https://github.com/kamailio/kamailio/pull/84</a></p>
<h4>Commit Summary</h4>
<ul>
<li>registrar : add lookup_to_dset optional uri param as in lookup</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/84/files#diff-0">modules/registrar/lookup.c</a>
(34)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/84/files#diff-1">modules/registrar/reg_mod.c</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/kamailio/kamailio/pull/84.patch'>https://github.com/kamailio/kamailio/pull/84.patch</a></li>
<li><a href='https://github.com/kamailio/kamailio/pull/84.diff'>https://github.com/kamailio/kamailio/pull/84.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/84">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQpoCrW00xHOHwxC1IPYU5v_WmHXks5nrXEegaJpZM4Df7qt.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/pull/84"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>