<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Matt,<br>
<br>
If Asterisk 4 is down, the hash will not be recalculated, but the
calls that should go to Asterisk 4 will simply be pushed to the next
available entry in the dispatcher list.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 11/25/2011 07:58 AM, Matt Hamilton wrote:
<blockquote cite="mid:BAY170-W39BEB7CBEBCCF85A1F13D0B3CF0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
I'm new to dispatcher - wanted to clarify couple of things...<br>
<br>
<br>
<br>
I'm using algorithm 7 (hash over the content of PVs string) to
pick a destination.<br>
<br>
<br>
modparam("dispatcher", "hash_pvar", "$pvar")<br>
ds_select_dst("1", "7");<br>
<br>
<br>
Let's say the probing_mode is 1, and based on the value of
$pvar (A, B, C, etc.), incoming requests are dispatched in the
following fashion:<br>
<br>
<br>
A -> Asterisk1<br>
B -> Asterisk1<br>
C -> Asterisk2<br>
D -> Asterisk3<br>
E -> Asterisk4<br>
F -> Asterisk4<br>
<br>
<br>
What happens to E, F if Asterisk4 fails? Are they distributed
among the remaining servers or do they all go to the same
server? <br>
<br>
Do A, B, C, D still go to the same servers? In other words, is
the hash recalculated?<br>
<br>
<br>
Can hash_pvar be changed; e.g. use $si for route[1], use $ci for
failure_route[1]?<br>
<br>
<br>
Thanks,<br>
Matt<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>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
OpenSIPS solutions and "know-how"</pre>
</body>
</html>