Doug G
2006-Jan-04 07:22 UTC
Using *RT for HA purposes was: [Asterisk-Users] RealtimeMultipleAsterisk boxes, iaxusers
I think I have 4 options. 1, Modify chan_sip.c to update a new field in sipusers realtime table with the status of the sip peer/user. Then use agi to dial sip calls. Check the status field if OK then dial the fullcontact from the sip table. If not goto voicemail or where ever else I want the call to go.. The UA would only register to one server, so only one server *should* be writing to the database. (If not the code will be modified to do so.) Other servers would be read only from my AGI. 2, Use Asterisk management interface to find the status of the sip peer. Then dial fullcontact if peer is active. Should be easy to implement. Problem is I would have to actively poll each server in the farm. 3, Use SER as the sip router and asterisk as an application/media server. Then all sip UA would register to the SER. Should scale higher, but does add a level of complexity. 4, Continue to use IAX trunk to dial the other switch. Then hope that realtime has been improved by the time I need the 3rd server. It is a failover but not a load balancer. Any thoughts? Am I completely off here? Doug -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Peter Bowyer Sent: Wednesday, January 04, 2006 7:33 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: Using *RT for HA purposes was: [Asterisk-Users] RealtimeMultipleAsterisk boxes, iaxusers On 04/01/06, Alistair Cunningham <acunningham@integrics.com> wrote:> Tijmen, > > We use SER for this to load balance across multiple Asterisks. We then > use a custom program to monitor the health of the Asterisks and update > SER's configuration should one go down. 2 SERs share a single IPaddress> for users to contact using heartbeat.I was thinking along the same lines, but for a dynamic setup it should be possible to have SER/OpenSER load balance REGISTER requests according to some strategy/metrics, and then forward INVITEs and other call-related traffic to the 'right' back-end server. Probably lots of reasons why this is too complicated, though.... Peter -- Peter Bowyer Email: peter@bowyer.org Tel: +44 1296 768003 VoIP: sip:peter@bowyer.org VoIP: *5048707000@sipbroker.com FWD: **275*5048707000 VoipTalk: **473*5048707000 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Douglas Garstang
2006-Jan-05 23:52 UTC
Using *RT for HA purposes was: [Asterisk-Users] RealtimeMultipleAsterisk boxes, iaxusers
The dispatcher module in OpenSER can load balance calls based on a hash of the SIP call-id. Supposedly the latest version even supports failover. Ooooo, fancy. Doug. -----Original Message----- From: tijmen van den brink [mailto:tijmen.vandenbrink@gmail.com] Sent: Wed 1/4/2006 2:30 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: Re: Using *RT for HA purposes was: [Asterisk-Users] RealtimeMultipleAsterisk boxes, iaxusers I did some research about Asterisk and High Availability and some sort of load balancing. The High Availability issue isnn't much of a problem. I did it with heartbeat en realtime. But the load balancing issue is realy a problem. You want a load balancer to make decisions based on call ID. The call ID is stored in the SIP header (layer 7) and for all I know there are only a few load balancers that can make decisions based on this layer and those load balancers are not SIP aware. So for now I don't think load balancing with *servers could be easily achieved. On 1/4/06, Kevin P. Fleming <kpfleming@digium.com> wrote: Asterisk wrote: > In my case I would be using DNS round robin. So a UA would only be > registering to one * server at a time. So wouldn't in fact be an > active/passive? No. You have said that you want the _other_ servers to be aware of that phone's registration and be able to deliver calls to it directly. That will not work. If you want the other servers to send calls to that phone through the server it registered with, then yes, that can easily be done. _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Tijmen van den Brink Wilhelminaweg 46 3441 XC Woerden Tel: 0642233831 MSN: tijmenvandenbrink@hotmail.com Skype: tijmenvdbrink@skype.com SIP:697116@fwd.pulver.com
Chad Osmond
2006-Feb-03 07:47 UTC
Using *RT for HA purposes was: [Asterisk-Users]RealtimeMultipleAsterisk boxes, iaxusers
Realtime.. As in pulling configs from a realtime database.. Or he's trying to link Asterisk to www.bestpracticals.com version of Request Tracker (also known as RT) -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Charles Wang Sent: February 3, 2006 8:13 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: Using *RT for HA purposes was: [Asterisk-Users]RealtimeMultipleAsterisk boxes, iaxusers Hi, ALL: Can anyone tell me what *RT is ? What is its full name? I think the * is asterisk but what is RT ? 2006/2/2, Rusty Shackleford <john97@flatline.com>:> > -----Original Message----- > > From: asterisk-users-bounces@lists.digium.com > > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > > Alistair Cunningham > > Sent: Wednesday, January 04, 2006 4:25 AM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: Using *RT for HA purposes was: > > [Asterisk-Users]Realtime MultipleAsterisk boxes, iaxusers > > > load balacing isn't perfect, and it can give uneven loads at low > > capacity, but it gets better as load increases which is where it > > matters. > > What kind of loads are we talking about here, please? > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best Regards Charles _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users