<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    $rs is set when handling a sip response, in failure_route use
    $T(reply_code):<br>
    <br>
     <a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/cookbooks/4.1.x/pseudovariables#t_name">http://www.kamailio.org/wiki/cookbooks/4.1.x/pseudovariables#t_name</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 12/06/14 10:45, Sebastian Damm
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABkWSFytQKMMQga+ZK-RoZ4AFR-07S+8otSgVT=i0AM1HYOvBg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,<br>
        <div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Wed, Jun 11, 2014 at 5:59 PM,
              Klaus Darilion <span dir="ltr"><<a
                  moz-do-not-send="true"
                  href="mailto:klaus.mailinglists@pernau.at"
                  target="_blank">klaus.mailinglists@pernau.at</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div text="#000000" bgcolor="#FFFFFF">
                  <div>It may work catching 200 OK in reply_route, but
                    catching >=300 in failure route. The failure
                    route is executed only once for all branches (it
                    chooses the most important response code)</div>
                </div>
              </blockquote>
              <div><br>
              </div>
              <div>I just tried that, but it looks like I can't access
                the $rs variable in failure route. <br>
                <br>
              </div>
              <div>I have a failure route which looks like this:<br>
                <br>
                failure_route["acc"] {<br>
                        xlog("L_INFO", "FAILURE: Found status $rs,
                handling.\n");<br>
                        route("accounting");<br>
                }<br>
              </div>
              <div><br>
                The log gives me this output:<br>
                 Jun 12 10:27:02 hagi /usr/sbin/kamailio[2988]: INFO:
                <script>: FAILURE: Found status <null>,
                handling.<br>
                <br>
              </div>
              <div>I know that I can check for the code with
                t_check_status(), but how do I just read the final
                status of the transaction?<br>
                <br>
              </div>
              <div>Best Regards,<br>
                Sebastian<br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>