Hi, Tito!

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.
But you can use the latest rabbitmq module in OpenSIPS 2.3.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 04/21/2017 09:53 PM, Tito Cumpen wrote:
Hey Razvan,

I tried the following on Opensips:

subscribe_event("E_ACC_EVENT","rabbitmq:vhostuser:[email protected]/vhostuser/queuename <http://rabbitmq:vhostuser:[email protected]/vhostuser/queuename>");

their URL string is in this format :

amqp://vhostusert:[email protected]/vhostuser <http://vhostusert:[email protected]/vhostuser>


When Opensips tries to connect to this queue it sends

/ as the argument for openvhost

Cloudamqp replies with


NOT_ALLOWED - access to vhost '/' refused for user 'vhostuser'


Is my opensips syntax incorrect ? or is this a bug ?

Also I am not sure what you mean by immediate.

Thanks,

Tito



On Fri, Apr 21, 2017 at 5:56 AM, Răzvan Crainea <[email protected] <mailto:[email protected]>> wrote:

    Hi, Tito!

    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.
    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.
    Can you detail a bit how you tested so we can find where the
    problem is on your setup?

    Best regards,

    Răzvan Crainea
    OpenSIPS Solutions
    www.opensips-solutions.com <http://www.opensips-solutions.com>

    On 04/20/2017 09:18 PM, Tito Cumpen wrote:
    Hello,

    I was wondering if there was any intention to update the amqp
    support to allow opensips to post events to
    cloudamqp(https://www.cloudamqp.com <https://www.cloudamqp.com>).
    When I try to connect cloudamqp it fails because it is outdated.

    Thanks,
    Tito


    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users
    <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
    _______________________________________________ Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users
<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to