[SR-Users] load balancing redirect

Iñaki Baz Castillo ibc at aliax.net
Fri Apr 16 18:11:17 CEST 2010


2010/4/16 Benjamin Lawetz <benjaminlawetz at gmail.com>:
> So if we go with an example
> with the dispatcher list set to
> sip:10.10.10.1:5060
> sip:10.10.10.2:5060
>
> If I receive a destination of jane at 10.10.10.3:5060
> And I call dst_select_domain()
> it will rewrite it as jane at 10.10.10.1:5060
> If I call dst_select_dst()
> it will send jane at 10.10.10.3:5060  to the IP 10.10.10.1
>
> Is this correct?

Right.

Also, if an Asterisk is down you will get into failure route with a
locally generated 408 "Timeout" (check also "is_local_replied()"
function). Then in failure_route you can call ds_next_dst() or
ds_next_domain() so the other asterisk will be selected and Kamailio
will send it the INVITE (this is failover).

-- 
Iñaki Baz Castillo
<ibc at aliax.net>




More information about the sr-users mailing list