<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hello James,<br>
<br>
In failure route, use t_check_status() [1] to consider only
certain negative replies as server failures (like 5xx, 6xx, 408
timeout, etc)<br>
<br>
[1] -
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/tm.html#id295103">http://www.opensips.org/html/docs/modules/2.2.x/tm.html#id295103</a><br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 07.10.2016 16:25, James Thomas
wrote:<br>
</div>
<blockquote
cite="mid:CAJkAy6sskC9DjdSiJ-_LDNGzS1bEz0rHi+jafEqv5AvkmONnMQ@mail.gmail.com"
type="cite">Hi, I'm trying to have my front end opensips server
fail over to different backend registrar servers when one
registrar server is <turned off/unresponsive>.
<div><br>
</div>
<div>I thought I could make t_on_failure trigger after the timeout
waiting for the response from server 1. Unfortunately when
server 1 is UP, the 401 challenge is being treated as a failure
so everything always fails over to server 2. Is there a better
way? Will need the same for INVITE etc. I tried a few
combinations of t_on_reply, checkstatus, etc to no avail. </div>
<div><br>
</div>
<div>Any quick and dirty solution is fine for now, we have a
planned power outage tonight in the DC that hosts registrar
server 1, but any info about the "right way" to do it is also
appreciated. This is hardly production or critical-only a
handful of endpoints- mostly experimental for now. </div>
<div><br>
</div>
<div>Thanks. <span></span></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<br>
</body>
</html>