<p>I didn't have the time to test the changes, but it seems to me that making append_branch depend on the _mode=0, breaks what the lookup_to_dset function had been thought for, adding new branches to the dset so that new branches can be added to a transaction via t_append_branches (tsilo relies on those two functions to work). Maybe I don't understand what are you trying to achieve calling lookup_to_dset with a ruri, but what's the purpose of calling a lookup without rewriting the r-uri nor appending new branches?</p>

<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#issuecomment-74510087">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zbyay6z7-jSmWroqRMV0rzoOuoUdks5nsewtgaJpZM4Df7qt.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#issuecomment-74510087"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>