<p dir="ltr">Hi Flavio,</p>
<p dir="ltr">I've checked but, as far as I know, this feature only allows to distribute the profiles, not the data of the dialog themselves. <br>
Doing some tests, I have 2 instances of opensips sharing the same database. I've also set the timeout to a low value and make several calls. Stopping an opensips instance while calls are on, only the calls of the active opensips instance are stopped. The calls that went through the stopped opensips instance are still on the database and are not stopped. As soon as the stopped opensips is started again, it checks the dialog table and finds the expired dialogs. Immediately it sends the BYE to both endpoints.</p>
<p dir="ltr">I had not yet time to check deeper in the code but it looks like each opensips instances "owns" some dialogs (I think is related to the hash identifiers). I guess that using the same "seed" could create conflict while saving the dialog data in the database so I don't know whether there's an option for several opensips instance to trully share the dialog table.</p>
<p dir="ltr">Thank you in advance,<br>
Samuel.<br>
</p>
<div class="gmail_quote">El 09/01/2013 10:17, "Flavio Goncalves" <<a href="mailto:flavio@asteriskguide.com">flavio@asteriskguide.com</a>> va escriure:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Samuel, <div><br></div><div>I suggest you investigate the new feature called distributed dialog profiles <a href="http://lists.opensips.org/pipermail/users/2012-February/020657.html" target="_blank">http://lists.opensips.org/pipermail/users/2012-February/020657.html</a> </div>
<div class="gmail_extra"><br clear="all"><div><div>Flavio E. Goncalves</div><div><a href="http://www.sippulse.com" target="_blank">www.sippulse.com</a></div><div> </div></div>
<br><br><div class="gmail_quote">2013/1/7 samuel <span dir="ltr"><<a href="mailto:samu60@gmail.com" target="_blank">samu60@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
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>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div>