<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>yes, using that MI function make sense only if you have an
already running server that needs to take over the calls (like an
active-active setup or cluster setup).<br>
<br>
Also be careful as moving the dialog from one server to another
should be done with preserving the IP of the server, otherwise
in-dialog routing will not work at all.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 01/09/2013 04:43 PM, Max Mühlbronner wrote:
<blockquote cite="mid:50ED81F7.3060309@42com.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hi,<br>
<br>
<br>
If the second server is started on-demand (e.g. keepalived) the
dialogs are loaded into memory from the DB (where the other
opensips stored the dialogs , by db_mode realtime..).<br>
<br>
So there would be no need to use dlg_db_sync in this simple
failover scenario, right?<br>
<br>
<br>
Best regards<br>
<br>
Max M.<br>
<br>
On 01/09/2013 02:30 PM, Bogdan-Andrei Iancu wrote:<br>
</div>
<blockquote cite="mid:50ED70E4.8070302@opensips.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<tt>See the MI command dlg_db_sync<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id295605">http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id295605</a><br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 01/09/2013 02:59 PM, samuel wrote:
<blockquote
cite="mid:CAOg=WDeUJwi=Y8ui-t8fco_gtemnSu53R0iccWR0cnBX9M6nag@mail.gmail.com"
type="cite">
<p dir="ltr">My point was exactly what you state in the last
sentence about failover scenario. Is there some way to use
current dialog module to handle these scenarios?</p>
<p dir="ltr">Thanks a lot,<br>
Samuel</p>
<div class="gmail_quote">El 09/01/2013 12:50, "Bogdan-Andrei
Iancu" <<a moz-do-not-send="true"
href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>
va escriure:<br type="attribution">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> <tt>Hi Samuel,<br>
<br>
For dialog module, the primary storage (for dialog
info) is all the time the mem cache. DB is only a
secondary storage and data is flushed from mem to DB.
At runtime, opensips never reads from DB, but only
from mem (the primary storage). (db mode REALTIME
means the DB storage is updated in realtime from mem
cache)<br>
<br>
So, you cannot have 2 opensips sharing dialog info via
DB. Or you want to implement a failover kind of
scenario (like shifting dialogs from one box to
another) ?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<br>
On 01/07/2013 07:59 PM, samuel wrote:
<blockquote type="cite">Hi folks,<br>
<br>
I'm started reading about dialog module and how to use
it in a distributed environment. I've read about the
'B' flag and how it can be used to send BYEs to the
end-points. My question is whether, using db_mode
REALTIME, another instance of opensips can use the
information stored in the database to send the BYE to
a dialog created in another opensips instance. <br>
<br>
The scenario is the next one: <br>
1.several opensips sharing the database and one of
them receives an INVITE.<br>
2.It creates the dialog and sets the B flag. The
parameter timeout is then set to the corresponding
value. <br>
3.Another opensips uses the information from the
dialog table to send the BYE either forced by an
external t_dlg command or reading from the database (I
guess the period can be controlled with the
db_update_period parameter).<br>
<br>
Is this possible with the current version?<br>
<br>
Thank you very much in advance and congratulations,<br>
Samuel.<br>
<br>
<br>
<br>
<br>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>