<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi,<br>
<br>
your logic in failure route is broken - do the "ds_mark_dst"
before selecting a new destination via "ds_next_dst". Firs mark
the used one as probing and then use the next one.<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>
On 16.09.2014 07:59, Satish Patel wrote:<br>
</div>
<blockquote
cite="mid:CAPgF-fqU1JjbSQ1rKN9wXutfkAo8Ai5YnqHfO0tquj4XO79W3A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>following is my config, I have two Freeswitch, if i stop
one of freeswitch and call it won't failover itself. but if
again i call if send call to other FS and if again i call it
send to failed one but not auto failover.. <br>
<br>
</div>
But after my prob detect it is dead then it change status from
Active to Probing but that detection time is (10 to 30 second
around), mean time it should failover call to other freeswitch
right? we have 1000 call per second and 10/30 second if big :(
<br>
<div>
<div><br>
#### Dispatcher<br>
loadmodule "dispatcher.so"<br>
modparam("dispatcher", "dst_avp", "$avp(i:271)")<br>
modparam("dispatcher", "attrs_avp", "$avp(i:272)")<br>
modparam("dispatcher", "grp_avp", "$avp(i:273)")<br>
modparam("dispatcher", "cnt_avp", "$avp(i:274)")<br>
modparam("dispatcher", "ds_ping_interval", 5)<br>
modparam("dispatcher", "ds_probing_threshhold", 10)<br>
modparam("dispatcher", "ds_probing_mode", 1)<br>
modparam("dispatcher", "options_reply_codes", "501, 403,
200")<br>
modparam("dispatcher", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips")<br>
<br>
<br>
route[to_dispatcher] {<br>
# Dispatch to FS<br>
if ( !ds_select_dst("1", "4", "F")) {<br>
send_reply("500","Unable to dispatch call to
Freeswitch");<br>
exit;<br>
} else {<br>
xlog("L_WARN", "dispatcher: Attempting to dispatch
call to $du\n");<br>
}<br>
t_on_failure("dispatcher_rollover");<br>
route(relay);<br>
}<br>
<br>
failure_route[dispatcher_rollover] {<br>
xlog("Inside dispatcher failure route\n");<br>
if (t_was_cancelled()) {<br>
exit;<br>
}<br>
<br>
if(!ds_next_dst()) {<br>
xlog("L_ERR", "R-DISPATCHER-ROLLOVER:$ci No
more gateways in route set\n");<br>
t_reply("503", "Out of gateways");<br>
exit;<br>
}<br>
ds_mark_dst("p");<br>
xlog("L_INFO", "R-DISPATCHER-ROLLOVER:$ci Attempting
relay to new gateway: $rd:$rp\n");<br>
t_on_failure("dispatcher_rollover");<br>
route(relay);<br>
}<br>
<br>
</div>
</div>
</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>