Fred Posner writes:
If it's just 2 servers, consider as Juha said, corosync/pacemaker with drbd.
Yes, and if you prefer to use mysql master-master replication instead of drbd, you can still use corosync/pacemaker for active/passive kamailio sip proxy that share the same virtual ip address. Using normal parameters, switch takes about 10 sec when the active sip proxy fails.
Of course, a simpler solution would be active-active setup, but that requires that your sip clients support outbound rfc and thus always register with both.
-- Juha