<p>I think it keeps receiving 401 and then you create a new branch, forward again until the max number of branches is exceeded (by default is 12, it can be changed via max_branches global parameter, up to 31 iirc -- see core cookbook for proper details).</p>

<p>For discussing further, use <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>, the issue tracker here is intended for bugs and feature requests, to keep it focused on development related matters. Sorting out configuration file issues is for users mailing lists.</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/507#issuecomment-183221055">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXdB1FGGQndVCqM4uhG9lPb7bjmnks5pjYfWgaJpZM4HYzbx.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/507#issuecomment-183221055"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>