<p>Got back to this one and pushed a new commit which does a bit of refactoring for this function, including the ability to work better with other types of routing blocks. Can you try again and see if the issue is still there.</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/pull/663#issuecomment-230287766">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZRrOILNqI49Bz4Z8iQAT2BzFAJ1Kks5qSQcQgaJpZM4Iv45j">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZUy6JO5mFDRC3A8a_hR0ciZ5heEvks5qSQcQgaJpZM4Iv45j.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/663#issuecomment-230287766"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>