Andy, no. No one has suggested using the lcr module, and I wasn't even aware of it until you mentioned it just now. I took a look at the module docs, they're way beyond my current understanding. it. I'll have to do some reading. Does it allow you to try another route when one is not responding?
Doug.
-----Original Message----- From: Andreas Granig [mailto:andreas.granig@inode.info] Sent: Thu 11/24/2005 2:25 PM To: Douglas Garstang Cc: users@openser.org Subject: Re: [Users] Dispatcher module - Does it actually work?
Douglas Garstang wrote: > Hashing over call-id may work to some degree, and I'll investigate it more, but hashing over the From: means that the same caller will always get the same Asterisk box, and your redundancy goes down the toilet. > > Actually I guess it's down the toilet anyway. The bottom line seems to be that it doesn't matter whether you use the dispatcher or SRV records to distribute load, OpenSER will never try to connect to anything else on failure and at least for us, that makes it use in a production system, not an option. I didn't follow the whole thread, so maybe this has been suggested before, but have you ever thought about using the lcr module for load balancing? In combination with failure routes for failover this works very well for me. Andy
Douglas Garstang wrote:
Andy, no. No one has suggested using the lcr module, and I wasn't even aware of it until you mentioned it just now. I took a look at the module docs, they're way beyond my current understanding. it. I'll have to do some reading. Does it allow you to try another route when one is not responding?
Yes. You have to define a set of destinations which you can load in the script using load_gws(), and every call to next_gw() sets the ip/port of another destination as ruri, until no more destinations are available.
You can find an example here:
http://linguin.org/ser/lcr_cap/lcr_config_example.txt
It's for a lcr-version which I have extended a little to be able to group destinations according to their capabilities (http://linguin.org/ser.php#lcr-cap), but you should at least get the idea on how to do it with the vanilla lcr module (just leave out the argument in load_gws()).
Andy