[Kamailio-Users] inbound "failover"
Daniel-Constantin Mierla
miconda at gmail.com
Wed Aug 19 09:52:51 CEST 2009
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 at domain.com
> <mailto:1020 at domain.com> and 1030 at domain.com <mailto:1030 at domain.com>.
> I have added aliases to 1020 (aliases from 1021 at domain com to
> 1029 at domain.com <mailto:1029 at 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
More information about the Users
mailing list