[asterisk-users] Asterisk 12 Dialplan

Murthy Gandikota mgandikota at nts.net
Mon Oct 27 14:40:23 CDT 2014


 

 

________________________________

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matthew
Jordan
Sent: Monday, October 27, 2014 10:44 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 12 Dialplan

 

 

 

On Mon, Oct 27, 2014 at 10:56 AM, Murthy Gandikota <mgandikota at nts.net>
wrote:

________________________________

 

Thanks, Richard. How do I get manager events such as  VarSetEvent
(https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+ManagerEvent_Var
Set) using ARI?

 

 

Events are provided by your WebSocket connection - a good overview of
how this works is provided on the wiki [1]. You will receive events for
resources that you are subscribed to; you are automatically subscribed
to any channel that enters your Stasis application [2]. You can create
subscriptions to things outside of your application using the
applications resource [3]. The possible events are all documented in the
data models [4].

Specifically, however, an AMI VarSet event corresponds to an ARI
ChannelVarSet event [5].

[1] https://wiki.asterisk.org/wiki/display/AST/Getting+Started+with+ARI
[2]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Stasi
s
[3]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Applications+REST
+API

[4]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+REST+Data+Models

[5]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+REST+Data+Models#
Asterisk13RESTDataModels-ChannelVarset

 


-- 

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 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141027/cec28116/attachment.html>


More information about the asterisk-users mailing list