I am happy to report that https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Applications+REST +API has the answer to my dilemma. It seems an app has to subscribe to channel events before it can receive the events like ChannelVarset...
________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Murthy Gandikota Sent: Tuesday, October 28, 2014 2:49 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk 12 Dialplan Tried this: wscat -c "ws://myhost.mydomain.net:8090/ari/events?api_key=secret:secret&app=hell o-world" It is only showing the stasis related events. I am interested in AMI events, specifically Varset. Thanks ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Murthy Gandikota Sent: Monday, October 27, 2014 7:54 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk 12 Dialplan ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Matthew Jordan Sent: Monday, October 27, 2014 3:15 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk 12 Dialplan On Mon, Oct 27, 2014 at 2:40 PM, Murthy Gandikota <[email protected]> wrote: I am unable to detect the Manager_Setvar event using ARI. Can you please let me know, in ARI lingo, the curl or javascript code to detect the AMI Manager_Setvar event for myvar in the following dialplan: [default] exten => 1000,1,NoOp() same => n,Answer() same => n,set(myvar=test) same => n,Stasis(hello-world) same => n,Hangup() Thanks Perhaps it would be easier if you provided some information about the ARI application you've written. Have you connected a WebSocket? Are you receiving other ARI events? -- Matthew Jordan Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.org I am using ari4java to capture stasis events like StasisStart, StatisEnd, etc. However, I am unable to capture the Varset event as explained before. In particular the myvar variable is not associated with any app It is perhaps a channel variable.
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
