Is it possible for a web application communicating with Asterisk through Asterisk REST Interface to receive an event or a notification anytime an endpoint has its state changing from online to offline, for instance ?
If positive, how can it be done ?
I’m sorry but after reading [1], I can’t find the {applicationName} I should use to receive EndpointStateChanges (as in POST /applications/{applicationName}/subscription).
For a start, I would like to set a Web Dashboard application that would passively monitor Voicemail activity or PJSIP endpoints connectivity and presents this data to users.
I tried this:
wscat -c “ws://localhost:8088/ari/events?ari_key=asterisk:asterisk&app=hello”
This seems to only display whatever is sent to “hello” app through a “Stasis(hello)” statement in dialplan.