<div dir="ltr">Thank you Carsten...<br>Very useful information, i will try this and contact the mailing list if i have issues.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 1:44 AM, Carsten Bock <span dir="ltr"><<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mahmoud,<br>
<br>
Thy typical way, to build a Active/Active setup is by using DNS-SRV<br>
records. The two servers get different IPs and you announce both IPs<br>
using DNS to the devices. Most common User-Agents support this<br>
nowadays, so that's kind of easy. It is specified in RFC3263:<br>
"Locating SIP-Servers" (<a href="http://tools.ietf.org/html/rfc3263" target="_blank">http://tools.ietf.org/html/rfc3263</a>).<br>
<br>
However, when using DNS-SRV records, dialogs and transactions are<br>
still associated with a single server, even though the User-Agent has<br>
an Alternative, in case one server fails. If you want to increase the<br>
HA for this, you can advertise the Domain name instead of an IP<br>
(causes more DNS-Lookups).<br>
<br>
You can share the dialog state between two nodes by using the dialog<br>
module in db-only mode (db_mode = 1, see<br>
<a href="http://kamailio.org/docs/modules/devel/modules/dialog.html#idp15368320" target="_blank">http://kamailio.org/docs/modules/devel/modules/dialog.html#idp15368320</a>).<br>
You cannot share transactions between two nodes, only dialogs.<br>
<br>
In addition, you can work with virtual IPs with Heartbeat/Pacemaker.<br>
<br>
At a big operator, we've used a combination of the two: Active/Passive<br>
for one site and DNS-SRV to distribute it among different sites.<br>
<br>
Kind regards,<br>
Carsten<br>
<div><div class="h5"><br>
2014-12-26 19:07 GMT+01:00 Mahmoud Ramadan Ali <<a href="mailto:cisco.and.more.blog@gmail.com">cisco.and.more.blog@gmail.com</a>>:<br>
> Hi Dears,<br>
> I have successfully configured Kamailio HA using Heartbeat and Pacemaker so<br>
> if one of the two servers should go down the other server will own the<br>
> virtual IP address and take over.<br>
> But i have two questions:<br>
><br>
> 1.This model is considered to be Active / Passive redundancy so one server<br>
> will process the SIP signaling until it goes down and i'm wondering is there<br>
> is any way two achieve Active / Active redundancy and if so how the<br>
> signaling will be handled on the servers so they can be aware of the<br>
> transactions and dialogs traversing the servers ? does the signalling will<br>
> be replicated or synchronized between the servers or what ?!<br>
><br>
> 2.What about the servers DB and how they should be designed in a cluster<br>
> mode ? i want to replicate all the DBs of the server to get consistent user<br>
> registration using the subscriber table for example.<br>
><br>
> Thanks in advance and Best regards.<br>
><br>
</div></div><span class="">> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
<br>
<br>
<br>
</span>--<br>
Carsten Bock<br>
CEO (Geschäftsführer)<br>
<br>
ng-voice GmbH<br>
Schomburgstr. 80<br>
D-22767 Hamburg / Germany<br>
<br>
<a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>
mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
<br>
Office +49 40 5247593-0<br>
Fax +49 40 5247593-99<br>
<br>
Sitz der Gesellschaft: Hamburg<br>
Registergericht: Amtsgericht Hamburg, HRB 120189<br>
Geschäftsführer: Carsten Bock<br>
Ust-ID: DE279344284<br>
<br>
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
<a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/imprint/</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>