Hello,
On 17.08.2009 12:25 Uhr, Dmitri G. wrote:
Hello,
I would like to implement some kind of failover for my Asterisk, let me
describe how I would like to see it.
I registered 2 sip users with my Kamailio, 1020(a)domain.com <mailto:
1020(a)domain.com> and 1030(a)domain.com <mailto:1030@domain.com>.
I have added aliases to 1020 (aliases from 1021@domain com to
1029(a)domain.com <mailto:1029@domain.com>).
Right now calls to 1020-1029 goes well to 1020, it works fine.
But I would like to do the following:
If 1020 isn't registered with Kamailio (let's say if registration for 1020
is down in Kamailio, so AOR not found for 1020), it is possible to route
calls to 1030?
So route calls to 1030 only when registration for 1020 isn't active in
Kamailio.
this should be handled in the lookup("location") condition:
if(!lookup("location"))
{
if($rU=="1020")
{
$rU="1030";
....
}
}
Cheers,
Daniel