2010/4/16 Benjamin Lawetz <benjaminlawetz(a)gmail.com>om>:
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@10.10.10.3:5060
And I call dst_select_domain()
it will rewrite it as jane@10.10.10.1:5060
If I call dst_select_dst()
it will send jane@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(a)aliax.net>