<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,<br>
</p>
<br>
<div class="moz-cite-prefix">On 16/06/16 11:10, Amit Patkar wrote:<br>
</div>
<blockquote cite="mid:57626D11.1060101@avhan.com" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<font face="Century Gothic" color="#000000">Hi<br>
<br>
I have a scenario where dispatcher is used to balance calls.<br>
Assume there are 2 media servers M1 & M2. Call are routed
using round robin algorithm. <br>
There is scenario where call is handed over to M1 but it is not
answered in defined time period (say 5 seconds due to load on
server or network congestion), I wish to send this call to M2. <br>
What are the options to achieve it?</font><font color="#000000"><br>
</font></blockquote>
you have to use a failure_route in this case to do re-routing. The
dispatcher module readme has a sample kamailio.cfg that shows how to
use such failure route:<br>
<br>
-
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.config">https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.config</a><br>
<br>
You should adjust the if block before the ds_next_dst() in
failure_route to match the situations when you want to do
re-routing.<br>
<br>
Cheers,<br>
Daniel<br>
<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://www.kamailio.org">http://www.kamailio.org</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>