# Best Way Of Active Calls / Live Calls Monitoring

**URL:** <https://community.asterisk.org/t/best-way-of-active-calls-live-calls-monitoring/94894>\
**Category:** Asterisk APIs\
**Created:** [November 26, 2022, 2:55pm UTC](https://community.asterisk.org/t/best-way-of-active-calls-live-calls-monitoring/94894 "2022-11-26T14:55:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![penguinpbx](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/penguinpbx/32/8856_2.png) [@penguinpbx](https://community.asterisk.org/u/penguinpbx)\
**Post date:** [November 28, 2022, 7:39pm UTC](https://community.asterisk.org/t/best-way-of-active-calls-live-calls-monitoring/94894/3 "2022-11-28T19:39:32Z")

</div>

Another option for live call status viewing / Heads Up Display modes…

When admin viewer is logged in to your website, start up a [websocket-via-PJSIP connection to Asterisk](https://wiki.asterisk.org/wiki/display/AST/Configuring+Asterisk+for+WebRTC+Clients) using client-side in-browser Javascript by way of [WebRTC](https://community.asterisk.org/c/asterisk/asterisk-webrtc/39) toolkits like [sipML5](https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5) or [jsSIP](https://community.asterisk.org/t/recommendation-webrtc-voice-open-source/93610), and then push interesting things to the client from the PBX server using [MessageSend()](https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Application_MessageSend) application.

PROs:

- Only active when admin is viewing.
- No database event store required.
- More fine-grained control over what info you push to client.
- Extends to general dialing tool for browser-based calls.
- Avoids overhead of AMI.

CONs:

- Securing connections can be hard to get right.
- New frameworks to learn.
- Silo’d development potential - not compatible with more generic interfaces.

---

_[View the full topic](https://community.asterisk.org/t/best-way-of-active-calls-live-calls-monitoring/94894)._
