<div dir="ltr"><div>Greetings list,</div><div> </div><div>I&#39;d like to be able to use a pvar in the subscribe function for the event interface like so:<br></div><div>subscribe(&quot;$avp(event_name)&quot;, &quot;$avp(rabbit_url)&quot;)</div>
<div> </div><div>Where event_name would be like E_CUSTOM_SUBSCRIBE and url would be &quot;rabbitmq:localhost/$fU&quot;</div><div> </div><div>I know this is not supported yet and I&#39;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&#39;s data type, but in the event interface it&#39;s not passed in.</div>
<div> </div><div>Any thoughts?  I&#39;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.</div>
<div><br>Thanks list!</div></div>