<p>I don't know why it is needed, as the description of the function says it will use the outgoing buf (uac) as a basis for the new request. But currently, the functions uses/needs it. The i_req parameter is the uas and is used for calling t_calc_branch() and create_via_hf().</p>

<p>I guess it could just as well construct the new Via from the previous uac in some way.</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/issues/210#issuecomment-113054335">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZUvHAv9BtzgaTLUSlwT0lr3bsl88ks5oUmEQgaJpZM4FDIZI.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/issues/210#issuecomment-113054335"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>