[asterisk-ha-clustering] Asterisk and openSER Dispatcher Load Balancer

JR Richardson jmr.richardson at gmail.com
Wed Jan 16 09:18:33 CST 2008


> > Is there a a routine that can positively identify that ser1 is
> > offline and send the call to ser2?
> >
> > Thanks.
> >
> > JR
>
>   Why don't you use qualify=(something) in asterisk and options_reply
> in OpenSER:
>
> http://openser.org/docs/modules/1.1.x/options.html#AEN104
> --
> Kristian Kielhofner

The problem is not when SER is up and running, it's when it goes down
and becomes non-responsive.  With qualify enabled, it takes Asterisk
up to 60 seconds to realize that ser1 is not responsive and switch
calls to ser2.

This seems to be a decent work around:
exten => 555,1,Dial(SIP/${EXTEN}|2|)
exten => 555,n,Dial(SIP/${EXTEN}|120|)
exten => 555,n,Hangup

Dial ser1 for 2 seconds, as long as it is up, the call goes through,
if it is down, there is only a 2 second delay then the call goes to
ser2. When ser1 is unreachable as per the qualify routine, then the
call goes straight to ser2.

I'd rather have asterisk know that ser1 is down, but this is workable
solution for now.

Thanks

JR
-- 
JR Richardson
Engineering for the Masses



More information about the asterisk-ha-clustering mailing list