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@xxxxxxxxxx> 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
> 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
_______________________________________________ asterisk-app-dev mailing list asterisk-app-dev@xxxxxxxxxxxxxxxx http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev