<div dir="auto">Razvan,<div dir="auto"><br></div><div dir="auto">How do specify the virtualhost in 2.3? can you send me a sample of the syntax ?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Apr 24, 2017 3:30 AM, "Răzvan Crainea" <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<tt>Hi, Tito!<br>
<br>
You are right, this is not possible with the event_rabbitmq
module, because there is no way to specify the virtual host in the
url.<br>
But you can use the latest rabbitmq module in OpenSIPS 2.3.<br>
<br>
Best regards,<br>
</tt>
<pre class="m_976396684938959440moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_976396684938959440moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
<div class="m_976396684938959440moz-cite-prefix">On 04/21/2017 09:53 PM, Tito Cumpen
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hey Razvan,
<div><br>
</div>
<div>I tried the following on Opensips:</div>
<div><br>
</div>
<div>
<p class="m_976396684938959440gmail-p1"><span class="m_976396684938959440gmail-s2">
subscribe_event("E_ACC_EVENT",<wbr>"<a href="http://rabbitmq:vhostuser:pw@host.cloudamqp.com/vhostuser/queuename" target="_blank">rabbitmq:vhostuser:pw@host.<wbr>cloudamqp.com/vhostuser/<wbr>queuename</a>")</span><span class="m_976396684938959440gmail-s3">; </span></p>
<p class="m_976396684938959440gmail-p1"><span class="m_976396684938959440gmail-s3">their URL string is
in this format :</span></p>
<p class="m_976396684938959440gmail-p1">amqp://<a href="http://vhostusert:pw@host.cloudamqp.com/vhostuser" target="_blank">vhostusert:pw@host.<wbr>cloudamqp.com/vhostuser</a><br>
</p>
<p class="m_976396684938959440gmail-p1"><br>
</p>
<p class="m_976396684938959440gmail-p1">When Opensips tries to connect to this
queue it sends</p>
<p class="m_976396684938959440gmail-p1">/ as the argument for openvhost <br>
</p>
<p class="m_976396684938959440gmail-p1">Cloudamqp replies with</p>
<p class="m_976396684938959440gmail-p1"><br>
</p>
<p class="m_976396684938959440gmail-p1">NOT_ALLOWED - access to vhost '/' refused
for user 'vhostuser'<br>
</p>
<p class="m_976396684938959440gmail-p1"><br>
</p>
<p class="m_976396684938959440gmail-p1">Is my opensips syntax incorrect ? or is
this a bug ?</p>
<p class="m_976396684938959440gmail-p1">Also I am not sure what you mean by
immediate.</p>
<p class="m_976396684938959440gmail-p1">Thanks,</p>
<p class="m_976396684938959440gmail-p1">Tito</p>
<p class="m_976396684938959440gmail-p1"><br>
</p>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Apr 21, 2017 at 5:56 AM, Răzvan
Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Hi, Tito!<br>
<br>
I've just made a free cloudamqp account for testing and
used the new rabbitmq module to send a message in the
queue. The message was not published initially due to
the fact that I was using the "immediate" flag, (I was
receiving NOT_IMPLEMENTED, probably because the free
account lacks some features), but after I removed the
setting the message was successfully delivered in the
queue.<br>
I didn't test with the event_rabbitmq module though, but
I imagine it will work too, since both modules
(event_rabbitmq and rabbitmq) use the same AMQP library.<br>
Can you detail a bit how you tested so we can find where
the problem is on your setup?<br>
<br>
Best regards,<br>
</tt>
<pre class="m_976396684938959440m_5400908705459069384moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_976396684938959440m_5400908705459069384moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
<div>
<div class="m_976396684938959440h5">
<div class="m_976396684938959440m_5400908705459069384moz-cite-prefix">On
04/20/2017 09:18 PM, Tito Cumpen wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_976396684938959440h5">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I was wondering if there was any intention to
update the amqp support to allow opensips to
post events to cloudamqp(<a href="https://www.cloudamqp.com" target="_blank">https://www.cloudamq<wbr>p.com</a>).
When I try to connect cloudamqp it fails because
it is outdated. </div>
<div><br>
</div>
<div>Thanks,<br>
Tito</div>
</div>
<br>
<fieldset class="m_976396684938959440m_5400908705459069384mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_976396684938959440m_5400908705459069384moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_976396684938959440m_5400908705459069384moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
______________________________<wbr>_________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</blockquote></div>
</div>
<fieldset class="m_976396684938959440mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_976396684938959440moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_976396684938959440moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div><br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div></div>