<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Adam,<br>
<br>
In such case, in failure route, when you do ds_mark_dst() and
ds_next_xx(), do not do it for 500 or 503 replies - make in script
a reply code filter to detect proper failure cases.<br>
<br>
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>
<br>
On 02/20/2013 04:40 PM, Adam Raszynski wrote:
<blockquote
cite="mid:CAJWEF2b9vA+-sk8XVwK4Gn1=J0ziPbsx361pKJLhb78SZD+HsA@mail.gmail.com"
type="cite">
<div>As I can see options_reply_codes is related to OPTIONS
responses and that's not the problem</div>
<div><br>
</div>
<div>The problem is when OpenSIPS with dispatcher module receives
500 or 503 response for INVITE request and after then for some
period that destination is marked offline.</div>
<div><br>
</div>
<div>OpenSIPS gives Service Unavailable response for further
INVITE requests. After then when dispatcher gets some proper
responses for OPTIONS it marks that destination online again and
INVITES are forwarded (until next 503 is sent in response to
INVITE and the story repeats)</div>
<div><br>
</div>
<div>The question is how to change that behavior, so one 503
response for INVITE from dispatcher destination don't make it
marked offline for all other requests?</div>
<div><br>
</div>
<div><br>
<div class="gmail_quote">
2013/2/20 Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> <tt>Hi Adam,<br>
<br>
See the "options_reply_codes" parameter for the
dispatcher module:<br>
<a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.9.x/dispatcher.html#id250429"
target="_blank">http://www.opensips.org/html/docs/modules/1.9.x/dispatcher.html#id250429</a><br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div class="h5"> <br>
On 02/20/2013 12:31 PM, Adam Raszynski wrote: </div>
</div>
<blockquote type="cite">
<div>
<div class="h5">Hi
<div><br>
</div>
<div>When I use dispatcher module and it gets 50x
response from destination host it automatically
marks that destination as inactive for some time
period</div>
<div><br>
</div>
<div>I only need to disable destinations when they
don't respond for OPTIONS probing</div>
<div><br>
</div>
<div>50x errors should not mark destinations as
inactive</div>
<div><br>
</div>
<div>How to do this?</div>
<div><br>
</div>
<div>Kind Regards</div>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>