<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 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>