<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Tito!<br>
      <br>
      I have attached again the snippet for my tests[1].<br>
      Note that event_rabbitmq and rabbitmq are two different modules:
      event_rabbitmq does not support vhosts, but the newly rabbitmq
      module does. Check the snippet[1].<br>
      <br>
      [1] <a class="moz-txt-link-freetext" href="https://pastebin.com/tsq2wmf1">https://pastebin.com/tsq2wmf1</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 07/19/2017 12:51 AM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANZPVB532fLhpAGvxnpq=guDchVNibqnz-zGScGAk5FFCfKa9A@mail.gmail.com">
      <div dir="ltr">Hey Razvan,
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Can you share the syntax for 2.3 again ? Although it looks
          like the documentation claims:</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>2.3.</div>
          <div><br>
          </div>
          <div>What is the vhost used by the AMQP server?</div>
          <div><br>
          </div>
          <div>Currently, the only vhost supported is '/'.</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Tito</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Apr 24, 2017 at 10:09 AM,
          Răzvan Crainea <span dir="ltr"><<a
              href="mailto:razvan@opensips.org" target="_blank"
              moz-do-not-send="true">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>
                Here's[1] the snippet I used for my tests.<br>
                <br>
                [1] <a
                  class="m_-6645080401342681010moz-txt-link-freetext"
                  href="https://pastebin.com/rRZhDXTX" target="_blank"
                  moz-do-not-send="true">https://pastebin.com/rRZhDXTX</a><br>
                <br>
                Best regards,<br>
              </tt><span class="">
                <pre class="m_-6645080401342681010moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_-6645080401342681010moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
              </span>
              <div>
                <div class="h5">
                  <div class="m_-6645080401342681010moz-cite-prefix">On
                    04/24/2017 10:35 AM, Tito Cumpen wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <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"
                          target="_blank" moz-do-not-send="true">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_-6645080401342681010m_976396684938959440moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_-6645080401342681010m_976396684938959440moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
                            <div
                              class="m_-6645080401342681010m_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_-6645080401342681010m_976396684938959440gmail-p1"><span
class="m_-6645080401342681010m_976396684938959440gmail-s2"> 
                                      subscribe_event("E_ACC_EVENT",<wbr>"<a
href="http://rabbitmq:vhostuser:pw@host.cloudamqp.com/vhostuser/queuename"
                                        target="_blank"
                                        moz-do-not-send="true">rabbitmq:vhostuser:pw@host.cl<wbr>oudamqp.com/vhostuser/queuenam<wbr>e</a>")</span><span
class="m_-6645080401342681010m_976396684938959440gmail-s3">; </span></p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1"><span
class="m_-6645080401342681010m_976396684938959440gmail-s3">their URL
                                      string is in this format :</span></p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">amqp://<a
href="http://vhostusert:pw@host.cloudamqp.com/vhostuser" target="_blank"
                                      moz-do-not-send="true">vhostusert:pw@host.clou<wbr>damqp.com/vhostuser</a><br>
                                  </p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1"><br>
                                  </p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">When
                                    Opensips tries to connect to this
                                    queue it sends</p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">/
                                    as the argument for openvhost <br>
                                  </p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">Cloudamqp
                                    replies with</p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1"><br>
                                  </p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">NOT_ALLOWED
                                    - access to vhost '/' refused for
                                    user 'vhostuser'<br>
                                  </p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1"><br>
                                  </p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">Is
                                    my opensips syntax incorrect ? or is
                                    this a bug ?</p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">Also
                                    I am not sure what you mean by
                                    immediate.</p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">Thanks,</p>
                                  <p
                                    class="m_-6645080401342681010m_976396684938959440gmail-p1">Tito</p>
                                  <p
                                    class="m_-6645080401342681010m_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"
                                      moz-do-not-send="true">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_-6645080401342681010m_976396684938959440m_5400908705459069384moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_-6645080401342681010m_976396684938959440m_5400908705459069384moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
                                      <div>
                                        <div
                                          class="m_-6645080401342681010m_976396684938959440h5">
                                          <div
class="m_-6645080401342681010m_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_-6645080401342681010m_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"
                                                  moz-do-not-send="true">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_-6645080401342681010m_976396684938959440m_5400908705459069384mimeAttachmentHeader"></fieldset>
                                            <br>
                                          </div>
                                        </div>
                                        <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-6645080401342681010m_976396684938959440m_5400908705459069384moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_-6645080401342681010m_976396684938959440m_5400908705459069384moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">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"
                                      moz-do-not-send="true">Users@lists.opensips.org</a>
                                    <a
                                      href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                      rel="noreferrer" target="_blank"
                                      moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
                                  </blockquote>
                                </div>
                              </div>
                              <fieldset
                                class="m_-6645080401342681010m_976396684938959440mimeAttachmentHeader"></fieldset>
                              <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-6645080401342681010m_976396684938959440moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_-6645080401342681010m_976396684938959440moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">Users@lists.opensips.org</a>
                          <a
                            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                            rel="noreferrer" target="_blank"
                            moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
                        </blockquote>
                      </div>
                    </div>
                    <fieldset
                      class="m_-6645080401342681010mimeAttachmentHeader"></fieldset>
                    <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-6645080401342681010moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_-6645080401342681010moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
                  </blockquote>
                </div>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Users mailing list<br>
            <a href="mailto:Users@lists.opensips.org"
              moz-do-not-send="true">Users@lists.opensips.org</a><br>
            <a
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </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>