<div dir="ltr"><div><div><div>Hi Dears,<br></div>Nobody answered my simple question yet ! what are the prerequisites that i need prior to using the db_mode = 1 dialog parameter to synchronize the dialogs between the two servers ?<br></div>Do i need to configure Mysql DB Master / Master replication or use only the DB_Cluster module <a href="http://kamailio.org/docs/modules/4.1.x/modules/db_cluster.html">http://kamailio.org/docs/modules/4.1.x/modules/db_cluster.html</a> to tell the servers where to synchronize dialogs ? in other words in Opensips there is a module parameter modparam("dialog", "replicate_dialogs_to", "<a href="http://192.168.1.111:8080" target="_top" rel="nofollow">192.168.1.111:8080</a>")  to designate the destination that will send the dialogs to BUT such parameter is NOT exist in the Kamailio dialog module Doc so how the two Kamailo server will know about its peer to send dialogs to it ?!<br><br></div>Best regards<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 29, 2014 at 1:32 PM, Ben Langfeld <span dir="ltr"><<a href="mailto:ben@langfeld.me" target="_blank">ben@langfeld.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Good point. Mobicents is on my list of projects to which I'm due to contribute something. I'll get on it shortly.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 29 December 2014 at 11:26, 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 Ben,<br>
<br>
that's absolutely for sure! It took us ~2 years to get the DNS-SRV<br>
implementation of major DSL-Modem-Manufacturer right ;-)<br>
Nevertheless, it's the way to go for redundancy. And since Mobicents<br>
is open-source, we can probably simply provide a patch to fix it :-)<br>
<br>
Kind regards,<br>
Carsten<br>
<div><div><br>
2014-12-29 12:13 GMT+01:00 Ben Langfeld <<a href="mailto:ben@langfeld.co.uk" target="_blank">ben@langfeld.co.uk</a>>:<br>
> On 27 December 2014 at 23:44, Carsten Bock <<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>> wrote:<br>
>><br>
>> 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>
><br>
> Just a word of caution here, there are several SIP stacks which don't handle<br>
> SRV lookups correctly. I don't mean to discourage you from this, but just to<br>
> be aware of it. For example, Mobicents only understands SRV record sets<br>
> which return domain names. If you return IPs, Mobicents will go ahead and<br>
> look them up as A records and fail.<br>
><br>
>><br>
>> You can share the dialog state etween 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>
>><br>
>> 2014-12-26 19:07 GMT+01:00 Mahmoud Ramadan Ali<br>
>> <<a href="mailto:cisco.and.more.blog@gmail.com" target="_blank">cisco.and.more.blog@gmail.com</a>>:<br>
>> > Hi Dears,<br>
>> > I have successfully configured Kamailio HA using Heartbeat and Pacemaker<br>
>> > 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<br>
>> > server<br>
>> > will process the SIP signaling until it goes down and i'm wondering is<br>
>> > 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<br>
>> > 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<br>
>> > user<br>
>> > registration using the subscriber table for example.<br>
>> ><br>
>> > Thanks in advance and Best regards.<br>
>> ><br>
>> > _______________________________________________<br>
>> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> > <a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
>> --<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" target="_blank">carsten@ng-voice.com</a><br>
>><br>
>> Office <a href="tel:%2B49%2040%205247593-0" value="+494052475930" target="_blank">+49 40 5247593-0</a><br>
>> Fax <a href="tel:%2B49%2040%205247593-99" value="+4940524759399" target="_blank">+49 40 5247593-99</a><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>
>><br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
--<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" target="_blank">carsten@ng-voice.com</a><br>
<br>
Office <a href="tel:%2B49%2040%205247593-0" value="+494052475930" target="_blank">+49 40 5247593-0</a><br>
Fax <a href="tel:%2B49%2040%205247593-99" value="+4940524759399" target="_blank">+49 40 5247593-99</a><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></div></blockquote></div><br></div>
</div></div><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>
<br></blockquote></div><br></div>