[asterisk-users] Listen to ARI events

Joshua C. Colp jcolp at sangoma.com
Tue Jun 6 17:31:14 CDT 2023


On Tue, Jun 6, 2023 at 6:04 PM TTT <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 www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230606/3ef2d357/attachment.html>


More information about the asterisk-users mailing list