<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body 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="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 04/21/2017 09:53 PM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB400U+Kp3wo2eisOMvUKVkiGGK6XB2c9YFyWobT9skmdw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hey Razvan,
        <div><br>
        </div>
        <div>I tried the following on Opensips:</div>
        <div><br>
        </div>
        <div>
          <p class="gmail-p1"><span class="gmail-s2"> 
              subscribe_event("E_ACC_EVENT","<a moz-do-not-send="true"
href="http://rabbitmq:vhostuser:pw@host.cloudamqp.com/vhostuser/queuename">rabbitmq:vhostuser:pw@host.cloudamqp.com/vhostuser/queuename</a>")</span><span
              class="gmail-s3">; </span></p>
          <p class="gmail-p1"><span class="gmail-s3">their URL string is
              in this format :</span></p>
          <p class="gmail-p1">amqp://<a moz-do-not-send="true"
              href="http://vhostusert:pw@host.cloudamqp.com/vhostuser">vhostusert:pw@host.cloudamqp.com/vhostuser</a><br>
          </p>
          <p class="gmail-p1"><br>
          </p>
          <p class="gmail-p1">When Opensips tries to connect to this
            queue it sends</p>
          <p class="gmail-p1">/ as the argument for openvhost <br>
          </p>
          <p class="gmail-p1">Cloudamqp replies with</p>
          <p class="gmail-p1"><br>
          </p>
          <p class="gmail-p1">NOT_ALLOWED - access to vhost '/' refused
            for user 'vhostuser'<br>
          </p>
          <p class="gmail-p1"><br>
          </p>
          <p class="gmail-p1">Is my opensips syntax incorrect ? or is
            this a bug ?</p>
          <p class="gmail-p1">Also I am not sure what you mean by
            immediate.</p>
          <p class="gmail-p1">Thanks,</p>
          <p class="gmail-p1">Tito</p>
          <p class="gmail-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 moz-do-not-send="true"
              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_5400908705459069384moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" class="m_5400908705459069384moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5">
                  <div class="m_5400908705459069384moz-cite-prefix">On
                    04/20/2017 09:18 PM, Tito Cumpen wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <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
                          moz-do-not-send="true"
                          href="https://www.cloudamqp.com"
                          target="_blank">https://www.<wbr>cloudamqp.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_5400908705459069384mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_5400908705459069384moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_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 moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>

<a moz-do-not-send="true" 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="mimeAttachmentHeader"></fieldset>
<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>
</body></html>