[asterisk-users] Listen to ARI events
TTT
lists at telium.io
Wed Jun 7 08:46:06 CDT 2023
I’ve reread the documentation a few times, and what isn’t clear is whether I need an app=X parameter in the url. In other words, can I only get events for a single named statis app? Or can I get events for the entire Asterisk server?
The command below (without app= parameter) results in no events being shown, but no error either.
Thanks
Brian
(Ast newbie)
From: asterisk-users [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of TTT
Sent: Tuesday, June 6, 2023 8:39 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion' <asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] Listen to ARI events
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:asterisk-users-bounces at lists.digium.com> mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joshua C. Colp
Sent: Tuesday, June 6, 2023 6:31 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion < <mailto:asterisk-users at lists.digium.com> asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] Listen to ARI events
On Tue, Jun 6, 2023 at 6:04 PM TTT <lists at telium.io <mailto:lists at telium.io> > 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 <http://www.sangoma.com> www.sangoma.com and <http://www.asterisk.org> www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230607/72a40b62/attachment.html>
More information about the asterisk-users
mailing list