[asterisk-app-dev] [Stasis] ChannelVarset is not raised for global variables

Claudiu Olteanu olteanu.claudiu at ymail.com
Tue Jul 5 09:37:55 CDT 2016


Ok, but if I subscribe my application to a channel event source, then I will receive ChannelVarset events only when a variable from that channel is changed. The events related to global variables are still not raised.


 

    On Tuesday, July 5, 2016 5:28 PM, Joshua Colp <jcolp at digium.com> wrote:
 

 Claudiu Olteanu wrote:
> I would expect to propagate the events related with global variables to
> every channel and Stasis application without an explicit subscription.
>
> Anyway, if an application needs to manually subscribe to receive the
> global variable events, how should I proceed?

There's a subscription mechanism[1] which when used with "channel:" will 
subscribe to everything channel related. This does show the event.

[1] 
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Applications+REST+API#Asterisk13ApplicationsRESTAPI-subscribe

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20160705/178f188c/attachment-0001.html>


More information about the asterisk-app-dev mailing list