<p>Hi <a href="https://github.com/nud" class="user-mention">@nud</a> ,</p>

<p>1) you can use it from any named route, as time as that named route is triggered from a Failure, On-Reply or Branch route.</p>

<p>2) that's a non sense which is not allowed (to call a onreply_route from a different onreply_route) - only named routes (route[subrutine]) can be used as sub-routes.</p>

<p>3) no, only one onreply_route is allowed (as you have a single main route for requests). As the onreply_route may take decision on discarding the reply, it is impossible (from logical perspective) to chain multiple onreply_routes.  A simple and elegant approach is to use an onreply_route[] with flags and subroutines (named flags) to signalize and handle different tasks - arm the reply route, and depending on the flow in main route, set different flags; flags to be checked in onreply_route.</p>

<p>Let me know your thoughts.</p>

<p>PS: 1.8 became recently unsupported (end-of-life), consider upgrading to 1.11</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/554#issuecomment-116608480">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcia7fpHuWXMjRr43wPHDijVtXa3Hfks5oYR1TgaJpZM4FBCLw.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/OpenSIPS/opensips/issues/554#issuecomment-116608480"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>