<!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">
Hello Mariana,<br>
<br>
Currently there is no way you can share the dialog state between 2
running instances of opensips. Probably this will be available in
the next versions (1.9 maybe ?).<br>
<br>
But my question is how comes you have such a scenario that requests
of the same dialog end up on different servers ?? may you such
consider fixing that part.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 03/09/2012 02:36 PM, Mariana Arduini wrote:
<blockquote
cite="mid:CABHUZgAQeJXA+j6e=-L+=C+RHDNT0BBYmzHd5HCN1E0S+W4_AQ@mail.gmail.com"
type="cite">Hello,
<div><br>
</div>
<div>I've been searching a lot on how to have more than one
OpenSIPS handling messages from the same dialog (for example,
the initial request goes to server #1 and the sequential
requests go to server #2, in case server #1 goes down). I've
tried pointing the db_url to the same database on both servers,
setting db_mode parameter to 1 (flush all dialog data into DB
immediately), setting the db_update_period to a smaller value
than the default but didn't work, except for when we stop server
#1 smoothly. Even so, some header translations we should do were
not performed.</div>
<div><br>
</div>
<div>I'm supposed to find out how a distributed key-value store
like Redis can be useful on that. I've seen the example in the
Key-value Interface Tutorial but I have no idea on how to
transfer dialog <span class="Apple-style-span"
style="font-family: Helvetica,Arial; font-size: 12px;">values,
flags </span><span class="Apple-style-span"
style="font-family: Helvetica,Arial; font-size: 12px;">along
with other dialog state information</span><span
class="Apple-style-span" style="font-family: Helvetica,Arial;
font-size: 12px;"> from the database to a KVP store. Would it
be something like having a whole new dialog module that uses a
distributed cache_db instead? Sounds hard to accomplish...</span></div>
<div><span class="Apple-style-span" style="font-family:
Helvetica,Arial; font-size: 12px;"><br>
</span></div>
<div><span class="Apple-style-span" style="font-family:
Helvetica,Arial; font-size: 12px;">Is this </span><a
moz-do-not-send="true"
href="http://lists.opensips.org/pipermail/users/2012-February/020657.html">http://lists.opensips.org/pipermail/users/2012-February/020657.html</a> supposed
to do what I need? Is there any example of use anywhere? What I
got from it is just profiling distribution, I don't get how
could this allow all dialog state to be shared...</div>
<div><br>
</div>
<div>Thanks a lot for any pointer or help.</div>
<div>Mariana.</div>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<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>
<br>
<br>
<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>
</body>
</html>