[OpenSIPS-Users] Event-RabbitMQ (and Event in general): pvar for event names

Bobby Smith bobby.smith at gmail.com
Fri May 24 17:32:38 CEST 2013


Hi Răzvan,

It seems none of the download links on the page you linked work for me (the
video or the source).  I know the website has been moved around a bit
recently, do you have updated links for these resources?

Thanks!


On Fri, May 24, 2013 at 3:16 AM, Răzvan Crainea <razvan at opensips.org> wrote:

> Hi, Bobby!
>
> I'm glad you're interested in enhancing OpenSIPS with extra features for
> the Event Interface, and I am eager to help you with this.
> The pvar interface in OpenSIPS is quite simple. Each variable consists of
> a spec and a value, which can be string or integer. Reading or writing a
> variable can be easily done using the generic pseudo-variable interface. I
> think the best way to start this is to watch the devel tutorial we prepared
> for the PVAR interface[1].
>
> [1] http://www.opensips.org/**Documentation/Tutorials-**DevelSession04<http://www.opensips.org/Documentation/Tutorials-DevelSession04>
>
> PS: probably this discussion should be continued on the devel list.
>
> Best regards,
>
> Razvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.**com <http://www.opensips-solutions.com>
>
>
> On 05/24/2013 08:21 AM, Bobby Smith wrote:
>
>> Greetings list,
>> I'd like to be able to use a pvar in the subscribe function for the
>> event interface like so:
>> subscribe("$avp(event_name)", "$avp(rabbit_url)")
>> Where event_name would be like E_CUSTOM_SUBSCRIBE and url would be
>> "rabbitmq:localhost/$fU"
>> I know this is not supported yet and I'd be interested in implementing
>> it, but understanding how pvars work is kinda tough without
>> documentation.  Also, it seems like you have to have a sip_msg in
>> context for the function to translate a pvar into it's data type, but in
>> the event interface it's not passed in.
>> Any thoughts?  I'd prefer not to use an infinite case statement: my use
>> case is having a 1.9.x route block with param() calls that pass in the
>> event name and the pvar for the queue name to subscribe to.
>>
>> Thanks list!
>>
>>
>> ______________________________**_________________
>> Users mailing list
>> 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<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130524/4c11667e/attachment-0001.htm>


More information about the Users mailing list