[OpenSIPS-Users] hash and dispatcher on failover

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Nov 25 12:17:08 CET 2011


Hi Matt,

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.

Regards,
Bogdan

On 11/25/2011 07:58 AM, Matt Hamilton wrote:
> I'm new to dispatcher - wanted to clarify couple of things...
>
>
>
> I'm using algorithm 7 (hash over the content of PVs string) to pick a 
> destination.
>
>
> modparam("dispatcher", "hash_pvar", "$pvar")
> ds_select_dst("1", "7");
>
>
> 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:
>
>
> A -> Asterisk1
> B -> Asterisk1
> C -> Asterisk2
> D -> Asterisk3
> E -> Asterisk4
> F -> Asterisk4
>
>
> What happens to E, F if Asterisk4 fails? Are they distributed among 
> the remaining servers or do they all go to the same server?
>
> Do A, B, C, D still go to the same servers? In other words, is the 
> hash recalculated?
>
>
> Can hash_pvar be changed; e.g. use $si for route[1], use $ci for 
> failure_route[1]?
>
>
> Thanks,
> Matt
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
OpenSIPS solutions and "know-how"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111125/2e09ce62/attachment.htm>


More information about the Users mailing list