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 using client-side in-browser Javascript by way of WebRTC toolkits like sipML5 or jsSIP, and then push interesting things to the client from the PBX server using 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.