Re: Listen to ARI events

"TTT" <[email protected]> Wed, 7 Jun 2023 00:38:34 +0000
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <01000188934a84ab-b1dd3a66-c3f7-45bb-94d2-85375c339d45-000000@email.amazonses.com>
I tried the command below (with subscribeAll=yes).  I made a couple of calls but didn’t see any events.  Should I see events?

 

From: asterisk-users [mailto:[email protected]] On Behalf Of Joshua C. Colp
Sent: Tuesday, June 6, 2023 6:31 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion <[email protected]>
Subject: Re: [asterisk-users] Listen to ARI events

 

On Tue, Jun 6, 2023 at 6:04 PM TTT <[email protected] <mailto:[email protected]> > wrote:

I have the ARI enabled on my Asterisk test box, and want to listen to all events.  I can’t find the syntax to do that.  Can I only listen to events related to a stasis app?  

 

I was hoping that a simple wscat command like this would show me all events:

 

wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk "

 

This does not listen to all events by default. If you want to listen to everything you can pass subscribeAll=yes[1] like so:

 

ws://localhost:8088/ari/events?api_key=asterisk:asterisk&subscribeAll=yes

 

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Events+REST+API#Asterisk20EventsRESTAPI-userEvent


 

-- 

Joshua C. Colp

Asterisk Project Lead

Sangoma Technologies

Check us out at www.sangoma.com <http://www.sangoma.com>  and www.asterisk.org <http://www.asterisk.org>

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users