Re: [Asterisk-Users] looking for failover ideas

2005-08-24 Thread steve


On Tue, 23 Aug 2005, William Lloyd wrote:

 I was going to add into Asterisk Realtime an extra field that is a  
 server identifier.  For example to allow multiple asterisk machines  
 to use the same CDR DB.  You would be able to select on the data from  
 just one of the servers.

We did this and it works fine as you might expect.  Perhaps we should put 
it up on bugs.digium.com, but it wasn't a big change.


 
 Also for example in sip.conf for registration.  Have the specific  
 asterisk server that processes the sip registration put it's  
 identifier (IP address for example) into a field in the DB also.   
 That way other asterisk servers sharing the DB would be able to know  
 what asterisk server a SIP phone is registered to.
 
 Does anybody else think this might be useful?

To my mind it doesn't make much difference where the phone is registered 
to.  Registration is just a way to find out the contact info (IP address 
mainly) for the SIP user.  Once we have that on one machine, in principle 
it can be used on any machine.

The only issue may be that NAT is open from the machine to which the phone 
originally registered, bt not from others.

So in our application we didn't bother to track which machine took the 
original registration.

Steve
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] looking for failover ideas

2005-08-24 Thread William Lloyd


Can you post or email your patch can I take a look at it?

It's specifically the issue of NATD that I'd like to be able to know  
what asterisk host a phone registers to.  that way I can do an  
asterisk to asterisk transfer and the original asterisk host that the  
phone is registered to can pass the call back down the NATD connection.


-bill




I was going to add into Asterisk Realtime an extra field that is a
server identifier.  For example to allow multiple asterisk machines
to use the same CDR DB.  You would be able to select on the data from
just one of the servers.



We did this and it works fine as you might expect.  Perhaps we  
should put

it up on bugs.digium.com, but it wasn't a big change.





Also for example in sip.conf for registration.  Have the specific
asterisk server that processes the sip registration put it's
identifier (IP address for example) into a field in the DB also.
That way other asterisk servers sharing the DB would be able to know
what asterisk server a SIP phone is registered to.

Does anybody else think this might be useful?



To my mind it doesn't make much difference where the phone is  
registered
to.  Registration is just a way to find out the contact info (IP  
address
mainly) for the SIP user.  Once we have that on one machine, in  
principle

it can be used on any machine.

The only issue may be that NAT is open from the machine to which  
the phone

originally registered, bt not from others.

So in our application we didn't bother to track which machine took the
original registration.

Steve
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] looking for failover ideas

2005-08-23 Thread Jeremy C. Reed
I found many mailing list threads and one wiki webpage with ideas and 
questions related to failover and high availability solutions.


Is there any webpage or wiki page that summarizes all these ideas?

What I have found:

- case 1: two identical Asterisk boxes with one acting as hot-failure backup
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover+case1

- low tech DPDT relay
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover

- VRRPD (KeepAlive daemon)

- Linux-HA and DRBD and heartbeat monitoring

- many mailing list postings with partial ideas

Should I ask the asterisk docs list instead?

 Jeremy C. Reed

 BSD News, BSD tutorials, BSD links
 http://www.bsdnewsletter.com/
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] looking for failover ideas

2005-08-23 Thread Anish Basu
We are building asterisk clusters using mysql replication.  All the
configuration and cdr data is stored using the res_mysql module.
Replication creates identical servers.  Then, the phones register to each
server using DNS SRV records.  If any server goes down, all the phones
registered to that server will register to any of the remaining servers.
The only downside of this is that all active calls get dropped once the
server goes down, but users can make and receive new calls instantaneously.

Another idea is to use Asterisk Realtime so that the mysql replication will
share registration information between servers, thus eliminating the need
for the phones to re-register.  Has anyone successfully implemented this or
something similar?

--Anish

Message: 8
Date: Tue, 23 Aug 2005 08:33:03 -0700 (PDT)
From: Jeremy C. Reed [EMAIL PROTECTED]
Subject: [Asterisk-Users] looking for failover ideas
To: Asterisk-Users@lists.digium.com
Message-ID: [EMAIL PROTECTED]
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

I found many mailing list threads and one wiki webpage with ideas and 
questions related to failover and high availability solutions.

Is there any webpage or wiki page that summarizes all these ideas?

What I have found:

- case 1: two identical Asterisk boxes with one acting as hot-failure backup
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover+case1

- low tech DPDT relay
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover

- VRRPD (KeepAlive daemon)

- Linux-HA and DRBD and heartbeat monitoring

- many mailing list postings with partial ideas

Should I ask the asterisk docs list instead?

  Jeremy C. Reed

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread Garth van Sittert
I have had an idea of using two identical servers:  Server A with IP 
x.x.x.a and server B with IP x.x.x.b.  Server A is live while server B 
sits in the background monitoring server A.  Server B rsync's asterisk 
config files daily with server A.
In the event of server A going down, server B changes it's IP to 
x.x.x.a.  The calls will obviously drop, but should register with server B.


Comments???


Anish Basu wrote:


We are building asterisk clusters using mysql replication.  All the
configuration and cdr data is stored using the res_mysql module.
Replication creates identical servers.  Then, the phones register to each
server using DNS SRV records.  If any server goes down, all the phones
registered to that server will register to any of the remaining servers.
The only downside of this is that all active calls get dropped once the
server goes down, but users can make and receive new calls instantaneously.

Another idea is to use Asterisk Realtime so that the mysql replication will
share registration information between servers, thus eliminating the need
for the phones to re-register.  Has anyone successfully implemented this or
something similar?

--Anish

Message: 8
Date: Tue, 23 Aug 2005 08:33:03 -0700 (PDT)
From: Jeremy C. Reed [EMAIL PROTECTED]
Subject: [Asterisk-Users] looking for failover ideas
To: Asterisk-Users@lists.digium.com
Message-ID: [EMAIL PROTECTED]
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

I found many mailing list threads and one wiki webpage with ideas and 
questions related to failover and high availability solutions.


Is there any webpage or wiki page that summarizes all these ideas?

What I have found:

- case 1: two identical Asterisk boxes with one acting as hot-failure backup
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover+case1

- low tech DPDT relay
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover

- VRRPD (KeepAlive daemon)

- Linux-HA and DRBD and heartbeat monitoring

- many mailing list postings with partial ideas

Should I ask the asterisk docs list instead?

 Jeremy C. Reed

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


 


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread Senad J
[EMAIL PROTECTED] wrote:
 I have had an idea of using two identical servers:  Server A with IP
 x.x.x.a and server B with IP x.x.x.b.  Server A is live while server B
 sits in the background monitoring server A.  Server B rsync's asterisk
 config files daily with server A.
 In the event of server A going down, server B changes it's IP to
 x.x.x.a.  The calls will obviously drop, but should register with
 server B. 
 
 Comments???

We use it... works just fine as you describe it.


Senad


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread Benjamin Lawetz
We're currently working on a SIP load-balancing system using ipvsadm and so
far it seems to work pretty well.

We load balance the port 5060 registration (tracking the connection for a
little more time than the registration retry so that it goes back to the
same server) using tunneling.

So a packet generated from a client is sent to the load balanced IP (ex.
192.168.1.100) the load balancer sees it as a new connection and sends it to
the server with the least amount of connections (Ex. 192.168.1.103).
192.168.1.103 received the packet on it's tunnel interface. Answers back
directly to the client (as coming from 192.168.1.100). Client answers back
to 192.168.1.100 and gets sent to the same server.

The actual RTP is not load-balanced and passes directly between client and
real server.

If I recall there was a little piece of magic with iptables to DNAT (because
asterisk answered as coming from the real server... I'll have to check what
it was.. Going from memory here)

This seems to work well for the moment (using 1.0.9). Each server has all
the devices configured and when someone calls for a specific device, we dial
the device on our own server and call the device on the other server
(special inter-server context)

On the load-balancing machine, there is a monitoring (for the moment, just
testing the port) on the asterisk service and on the pingability of the
server using mon. If one of the servers goes down, it is automatically taken
out of the load-balancer.

Balances the load, and provides failover (using heartbeat for failover of
the load-balancing machine.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Garth van
Sittert
Sent: August 23, 2005 1:58 PM
To: [EMAIL PROTECTED]; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] looking for failover ideas

I have had an idea of using two identical servers:  Server A with IP x.x.x.a
and server B with IP x.x.x.b.  Server A is live while server B sits in the
background monitoring server A.  Server B rsync's asterisk config files
daily with server A.
In the event of server A going down, server B changes it's IP to x.x.x.a.
The calls will obviously drop, but should register with server B.

Comments???


Anish Basu wrote:

We are building asterisk clusters using mysql replication.  All the 
configuration and cdr data is stored using the res_mysql module.
Replication creates identical servers.  Then, the phones register to 
each server using DNS SRV records.  If any server goes down, all the 
phones registered to that server will register to any of the remaining
servers.
The only downside of this is that all active calls get dropped once the 
server goes down, but users can make and receive new calls instantaneously.

Another idea is to use Asterisk Realtime so that the mysql replication 
will share registration information between servers, thus eliminating 
the need for the phones to re-register.  Has anyone successfully 
implemented this or something similar?

--Anish

Message: 8
Date: Tue, 23 Aug 2005 08:33:03 -0700 (PDT)
From: Jeremy C. Reed [EMAIL PROTECTED]
Subject: [Asterisk-Users] looking for failover ideas
To: Asterisk-Users@lists.digium.com
Message-ID: [EMAIL PROTECTED]
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

I found many mailing list threads and one wiki webpage with ideas and 
questions related to failover and high availability solutions.

Is there any webpage or wiki page that summarizes all these ideas?

What I have found:

- case 1: two identical Asterisk boxes with one acting as hot-failure 
backup
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover+case1

- low tech DPDT relay
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover

- VRRPD (KeepAlive daemon)

- Linux-HA and DRBD and heartbeat monitoring

- many mailing list postings with partial ideas

Should I ask the asterisk docs list instead?

  Jeremy C. Reed

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


  

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread Sergio Serrano
 
How do you do monitoritng? How Server B knows that Servar A is down? I just
do a rsync and MySQL Replication, but I try to do a C program that monitor
Server. If you know how can I do this monitoring I will be pleasant with
you.


regards,

srsergio

-Mensaje original-
De: Senad J [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 23 de agosto de 2005 20:15
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: RE: [Asterisk-Users] looking for failover ideas

[EMAIL PROTECTED] wrote:
 I have had an idea of using two identical servers:  Server A with IP 
 x.x.x.a and server B with IP x.x.x.b.  Server A is live while server B 
 sits in the background monitoring server A.  Server B rsync's asterisk 
 config files daily with server A.
 In the event of server A going down, server B changes it's IP to 
 x.x.x.a.  The calls will obviously drop, but should register with 
 server B.
 
 Comments???

We use it... works just fine as you describe it.


Senad


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread Senad J
[EMAIL PROTECTED] wrote:
 How do you do monitoritng? How Server B knows that Servar A is down?
 I just do a rsync and MySQL Replication, but I try to do a C program
 that monitor Server. If you know how can I do this monitoring I will
 be pleasant with you.

1. use heartbeat for failover  between A and B. Setup correctly failover is
fully automatic.
2. u can use www.nagios.org  or similar installed on C to monitor A and B



Senad




___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread Sergio Serrano
If I use hearbeat I need a failover system for ISDN Lines, not? I waould
like that if Server A crashes, Server B Control SIP Registration and ISDN
Lines. Do you know about this?

regards,

srsergio

-Mensaje original-
De: Senad J [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 23 de agosto de 2005 22:10
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: RE: [Asterisk-Users] looking for failover ideas

[EMAIL PROTECTED] wrote:
 How do you do monitoritng? How Server B knows that Servar A is down?
 I just do a rsync and MySQL Replication, but I try to do a C program 
 that monitor Server. If you know how can I do this monitoring I will 
 be pleasant with you.

1. use heartbeat for failover  between A and B. Setup correctly failover is
fully automatic.
2. u can use www.nagios.org  or similar installed on C to monitor A and B



Senad




___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread Senad J
[EMAIL PROTECTED] wrote:
 How do you do monitoritng? How Server B knows that Servar A is down?
 I just do a rsync and MySQL Replication, but I try to do a C program
 that monitor Server. If you know how can I do this monitoring I will
 be pleasant with you.

http://www.voip-info.org/tiki-index.php?page=Asterisk+High+Availability+Solu
tions


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread Ariel Batista

Sergio Serrano wrote:

If I use hearbeat I need a failover system for ISDN Lines, not? I
waould like that if Server A crashes, Server B Control SIP
Registration and ISDN Lines. Do you know about this?


There is a new product form Redfone that will help provide a failover with 
the T1/PRI connections.


There available from VoipSupply.com 
http://www.voipsupply.com/product_info.php?products_id=1002



regards,

srsergio

-Mensaje original-
De: Senad J [mailto:[EMAIL PROTECTED]
Enviado el: martes, 23 de agosto de 2005 22:10
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: RE: [Asterisk-Users] looking for failover ideas

[EMAIL PROTECTED] wrote:

How do you do monitoritng? How Server B knows that Servar A is down?
I just do a rsync and MySQL Replication, but I try to do a C program
that monitor Server. If you know how can I do this monitoring I will
be pleasant with you.


1. use heartbeat for failover  between A and B. Setup correctly
failover is fully automatic.
2. u can use www.nagios.org  or similar installed on C to monitor A
and B



Senad




___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users 

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] looking for failover ideas

2005-08-23 Thread William Lloyd

I'm looking at doing something very similar.

I was going to add into Asterisk Realtime an extra field that is a  
server identifier.  For example to allow multiple asterisk machines  
to use the same CDR DB.  You would be able to select on the data from  
just one of the servers.


Also for example in sip.conf for registration.  Have the specific  
asterisk server that processes the sip registration put it's  
identifier (IP address for example) into a field in the DB also.   
That way other asterisk servers sharing the DB would be able to know  
what asterisk server a SIP phone is registered to.


Does anybody else think this might be useful?

Where would be the best place to have a server identifier variable?   
asterisk.conf?  within the sip.conf that applies just to the sip SQL  
tables?


-bill


On 23-Aug-05, at 1:28 PM, Anish Basu wrote:


We are building asterisk clusters using mysql replication.  All the
configuration and cdr data is stored using the res_mysql module.
Replication creates identical servers.  Then, the phones register  
to each

server using DNS SRV records.  If any server goes down, all the phones
registered to that server will register to any of the remaining  
servers.
The only downside of this is that all active calls get dropped once  
the
server goes down, but users can make and receive new calls  
instantaneously.


Another idea is to use Asterisk Realtime so that the mysql  
replication will
share registration information between servers, thus eliminating  
the need
for the phones to re-register.  Has anyone successfully implemented  
this or

something similar?

--Anish

Message: 8
Date: Tue, 23 Aug 2005 08:33:03 -0700 (PDT)
From: Jeremy C. Reed [EMAIL PROTECTED]
Subject: [Asterisk-Users] looking for failover ideas
To: Asterisk-Users@lists.digium.com
Message-ID: [EMAIL PROTECTED]
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

I found many mailing list threads and one wiki webpage with ideas and
questions related to failover and high availability solutions.

Is there any webpage or wiki page that summarizes all these ideas?

What I have found:

- case 1: two identical Asterisk boxes with one acting as hot- 
failure backup

http://www.voip-info.org/tiki-index.php?page=Asterisk+failover+case1

- low tech DPDT relay
http://www.voip-info.org/tiki-index.php?page=Asterisk+failover

- VRRPD (KeepAlive daemon)

- Linux-HA and DRBD and heartbeat monitoring

- many mailing list postings with partial ideas

Should I ask the asterisk docs list instead?

  Jeremy C. Reed

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users