[Asterisk-Users] Connecting to a cluster of SIP servers

Douglas Garstang dgarstang at oneeighty.com
Mon Apr 24 08:12:10 MST 2006


You can't use round robin DNS. Round robin DNS will cause every SIP packet to potentially go through a different static path, which will break things.

> -----Original Message-----
> From: billy at kersting.com [mailto:billy at kersting.com]
> Sent: Saturday, April 22, 2006 5:27 AM
> To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> Subject: RE: [Asterisk-Users] Connecting to a cluster of SIP servers
> 
> 
> Although there maybe a better way, this would work:
> 
> 1. Add the IP's into your sip.conf and set qualify=yes.
> 2. Make your dialplan something like the following:
> 	exten => _X.,1,Dial,SIP/${EXTEN}@84.92.0.75
> 	exten => _X.,2,Hangup
> 	exten => _X.,102,Dial,SIP/${EXTEN}@84.92.0.76
> 	exten => _X.,103,Hangup
> 	exten => _X.,203,Dial,SIP/${EXTEN}@84.92.0.189
> 	exten => _X.,204,Hangup
> 	exten => _X.,304,Dial,SIP/${EXTEN}@84.92.0.190
> 	exten => _X.,305,Hangup
> 
> This would make your failover work but certainly wouldn't 
> help with the load
> balancing between the servers. If any cannot qualify or are 
> congested, they
> will automatically failover to the next server.
> 
> I believe most people use an SER proxy for this type of 
> application. It
> seems to work well with the round robin type DNS.
> 
> William	
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Steve Hill
> Sent: Saturday, April 22, 2006 5:13 AM
> To: Asterisk-Users at lists.digium.com
> Subject: [Asterisk-Users] Connecting to a cluster of SIP servers
> 
> 
> My Asterisk server is connecting to "sip.plus.net", which resolves to 
> multiple IP addresses:
> 
>      sip.plus.net.           300     IN      A       84.92.0.75
>      sip.plus.net.           300     IN      A       84.92.0.76
>      sip.plus.net.           300     IN      A       84.92.5.189
>      sip.plus.net.           300     IN      A       84.92.5.190
> 
> If one of these machines is down (i.e. it's not replying to the SIP 
> packets or it's sending back ICMP Port Unreachable), Asterisk 
> keeps trying 
> the same server. Shouldn't Asterisk move on to the next server 
> automatically in this case? It seems to only way to do this 
> at the moment 
> is to run the "reload" command, which causes it to do a DNS 
> lookup and it 
> may then pick one of the other servers.
> 
> -- 
> 
>   - Steve
>     xmpp:steve at nexusuk.org   sip:steve at nexusuk.org   
http://www.nexusuk.org/

      Servatis a periculum, servatis a maleficum - Whisper, Evanescence

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


__________ NOD32 1.1447 (20060316) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


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



More information about the asterisk-users mailing list