<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>for your info : I caught the 603 reply in onreply_route, putted
      an avp to true.  <br>
    </p>
    <p>Then using that avp in failure_route, I rewrote the reply to 100
      trying and issued a reinvite.</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 29/01/2021 15:13, John Burke via
      Users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:7de179848c5feb9053ca338beea84e71@voxtelesys.net">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div class="iw_mail" dir="ltr" style="font-size: 13px;">
        <div>Hey Johan,</div>
        <div><br>
        </div>
        <div>Failure routes are in the context of request [1] - from the
          docs: "Note that inside the 'failure_route', the request that
          initiated the transaction is being processed, and not its
          reply."</div>
        <div><br>
        </div>
        <div>You can access reply context from failure route by
          specifying the context of $rs:</div>
        <div><br>
        </div>
        <div>$(<em><context></em><strong>name</strong><em>(subname)[index]{transformation}</em>)</div>
        <div>$(<reply>rs)</div>
        <div><br>
        </div>
        <div>[1]
          <a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Script-Routes-3-1#toc3">https://www.opensips.org/Documentation/Script-Routes-3-1#toc3</a></div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>John</div>
        <div><br>
        </div>
        <div style="font-size: 13px;font-family:Roboto, Tahoma,
          Helvetica, sans-serif;line-height:normal;" dir="LTR"
          class="iw-reply-block">
          <div style="margin:0;font-family:Roboto, Tahoma, Helvetica,
sans-serif;font-size:13px;font-weight:300;line-height:150%;letter-spacing:normal;color:#333333;">
            <div style="display:none;margin:0;font-family:Roboto,
              Tahoma, Helvetica,
sans-serif;font-size:13px;font-weight:300;line-height:150%;letter-spacing:normal;color:#333333;">-----
              Original Message -----</div>
            <hr style="width:100%;padding:0;margin:10px
              0;color:#888888;background-color:#888888;border-color:#DDDDDD;"
              width="100%" size="1">From: johan (<a style="font-family:
              Helvetica, sans-serif; font-size: 12px; font-weight: 300;
              line-height: 150%; color: rgb(0, 136, 204);
              text-decoration: none;" href="mailto:johan@democon.be"
              moz-do-not-send="true">johan@democon.be</a>)<br>
            Date: 01/29/21 04:04<br>
            To: OpenSIPS users mailling list (<a style="font-family:
              Helvetica, sans-serif; font-size: 12px; font-weight: 300;
              line-height: 150%; color: rgb(0, 136, 204);
              text-decoration: none;"
              href="mailto:users@lists.opensips.org"
              moz-do-not-send="true">users@lists.opensips.org</a>)<br>
            Subject: <span style="font-family:Helvetica,
sans-serif;font-size:12px;font-weight:300;line-height:150%;color:#333;text-decoration:none;font-weight:bold;">[OpenSIPS-Users]
              issue with reply_route , failure_route.</span></div>
          <br>
          <div>Is it normal that $rs is only populated in on_reply route
            ?<br>
            <br>
            Jan 29 04:57:07 SBC-01 /data/opensips/sbin/opensips[9884]:<br>
            <a class="moz-txt-link-abbreviated" href="mailto:callid=4dcae6e2542525c715d2890c178a9968@176.241.248.19">callid=4dcae6e2542525c715d2890c178a9968@176.241.248.19</a>:<br>
            Onreply_route[handle_nat]: incoming reply rs [100]<br>
            Jan 29 04:57:07 SBC-01 /data/opensips/sbin/opensips[9884]:<br>
            <a class="moz-txt-link-abbreviated" href="mailto:callid=4dcae6e2542525c715d2890c178a9968@176.241.248.19">callid=4dcae6e2542525c715d2890c178a9968@176.241.248.19</a>:<br>
            Onreply_route[handle_nat]: incoming reply rs [603]<br>
            Jan 29 04:57:07 SBC-01 /data/opensips/sbin/opensips[9884]:<br>
            <a class="moz-txt-link-abbreviated" href="mailto:callid=4dcae6e2542525c715d2890c178a9968@176.241.248.19">callid=4dcae6e2542525c715d2890c178a9968@176.241.248.19</a>:<br>
            failure_route[missed_call] there is an error, we call
            rtpengine_delete<br>
            first, rs [<null>]<br>
            <br>
            <hr>_______________________________________________<br>
            Users mailing list<br>
            <a href="mailto:Users@lists.opensips.org"
              moz-do-not-send="true">Users@lists.opensips.org</a><br>
            <a
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>