<p>On further investigation, it is possible to set the <code>t_on_failure</code> route in <code>local_route</code> (this B2B stuff hurts the head a little) and get the same voicemail behavior as before.</p>

<p>It works, it's just a bit awkward because you lose all context in <code>local_route</code> about the leg (all the logic leading up to deciding which failure route to set). I'm setting custom headers and telling B2B to pass them so that I can get context, but it's not the most robust.</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/647#issuecomment-142722534">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciXwznK91G4jt4cNZXRaPS8oMxmkYks5o0wZTgaJpZM4GCo3v.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/647#issuecomment-142722534"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>