[OpenSIPS-Users] support for cloudamqp

Răzvan Crainea razvan at opensips.org
Mon Apr 24 10:09:52 EDT 2017


Hi, Tito!

Here's[1] the snippet I used for my tests.

[1] https://pastebin.com/rRZhDXTX

Best regards,

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

On 04/24/2017 10:35 AM, Tito Cumpen wrote:
> Razvan,
>
> How do specify the virtualhost in 2.3?  can you send me a sample of 
> the syntax ?
>
> On Apr 24, 2017 3:30 AM, "Răzvan Crainea" <razvan at opensips.org 
> <mailto:razvan at opensips.org>> wrote:
>
>     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 <http://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:pw at host.cloudamqp.com/vhostuser/queuename
>>     <http://rabbitmq:vhostuser:pw@host.cloudamqp.com/vhostuser/queuename>");
>>
>>
>>     their URL string is in this format :
>>
>>     amqp://vhostusert:pw@host.cloudamqp.com/vhostuser
>>     <http://vhostusert:pw@host.cloudamqp.com/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
>>     <razvan at opensips.org <mailto:razvan at opensips.org>> 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
>>>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>         <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>>         _______________________________________________ Users mailing
>>         list Users at lists.opensips.org
>>         <mailto:Users at lists.opensips.org>
>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>         <http://lists.opensips.org/cgi-bin/mailman/listinfo/users> 
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>     _______________________________________________ Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users> 
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170424/d7315084/attachment-0001.html>


More information about the Users mailing list