[asterisk-users] OpenSER for Asterisk Load balance

Edgar Guadamuz eguadamuz at gmail.com
Sat Nov 3 12:02:55 CDT 2007


One more question...

This dispatcher module configuration allows to balance the INVITE
packets, but  that means that the users have to be registered in a way
that allow start a call from any of the goup of * servers, such a
database, isn't it?
What about balance the REGISTER packages?



On 11/1/07, ram <talk2ram at gmail.com> wrote:
>
>
>
> On 11/2/07, Edgar Guadamuz <eguadamuz at gmail.com> wrote:
> > Hi, guys
> >
> > I´ve just seen thta OpenSER can be coupled with Asterisk for load
> > balance, with the dispatcher module, something like this:
> >
> > dispatcher.cfg file
> >
> > # group  sip addresses of your * units
> > 1 sip:10.1.2.3:5060
> > 1 sip:10.1.2.4:5060
> > 1 sip: 10.1.2.5:5060
> >
> > the basic openser.cfg should be like:
> >
> > loadmodule("dispatcher.so")
> >
> > ...
> >
> > if ( method=="INVITE" ) {
> > # dst_select( "GROUP", "HASH METHOD")
> > dst_select("1","4");
> > sl_send_reply("100","Trying");
> > forward(uri:host, uri:port);
> > exit();
> > }
> >
> > That´s OK, but what about failover, I mean, if a Asterisk box crashes,
> > the dispatcher module will continue sending requests for that IP and
> > in this case something like heartbeat had to be implemented to take
> > the failed IP, but it would be more efficient if we could have OpenSER
> > monitoring the Asterisk servers health, anyone knows how?
>
>
> Hi
>
> the recomendations are DNS SRV records or
> do in round robin basic.
>
> Like failover routes from OpenSER
>
> http://gearsofvoip.com/index.htm
>
> ram
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list