[Kamailio-Users] inbound "failover"

Dmitri G. xbt.dev at gmail.com
Thu Aug 20 02:07:36 CEST 2009


2009/8/19 Daniel-Constantin Mierla <miconda at gmail.com>

> 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
>

Thank you for your reply Daniel! It works fine.

Thanks,

Dmitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/users/attachments/20090820/bdebd7b6/attachment.htm>


More information about the Users mailing list