<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi, Sammy!<br>
<br>
Unfortunately there currently is no way to wait for a rabbitmq
reply as you want. However, I also think it would be nice to have
this feature in the next versions. Can you please open a feature
request for this[1]?<br>
For now, you can only use REST, DB or CacheDB queries to achieve
this.<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues/">https://github.com/OpenSIPS/opensips/issues/</a> <br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 05/03/2017 06:51 PM, SamyGo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJUJwtj_VUvnYZcz-YfhfE206=yywvZ1ypk79+ERkY-Zsu4djA@mail.gmail.com">
<div dir="ltr">Hi All,<br>
<br>
I'm toying with the idea of having a cluster of opensips sending
events between each other and also capable of "querying" other
servers in the cluster to retrieve the required data.
<div><br>
</div>
<div>This idea is not any different than having a shared Redis
sentinel between the cluster to set/get data but I want to use
event_routing, event_rabbitmq, or rabbitmq modules to achieve
the same.</div>
<div><br>
</div>
<div>The RabbitMQ as I've read it can only send data and can not
listen for incoming bcast/mcast messages, let me know if I'm
wrong here. <br>
<br>
The event_rabbitMQ can send some data to the RabbitMQ server
again but only based on some event.</div>
<div><br>
</div>
<div>The event_routing (EBR, new module) can wait for events to
happen OR notify if an event happens. <br>
<br>
Now, the Question: How can I send a query(RPC) to the RabbitMQ
server; wait for the reply event, and route my calls
accordingly?</div>
<div> </div>
<div><br>
OpenSIPS1 ------data------->>RabbitMQ<br>
..<br>
....<br>
OpenSIPS2-----query----->>RabbitMQ<br>
OpenSIPS2<----data--------RabbitMQ<br>
<br>
<br>
Thanks,<br>
Sammy</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
</body>
</html>