WebRTC got to me. I can't say it was the first time, but most deep at the moment.
Small disclaimer. I'm not a web developer and only now got, that browser is OS by itself.
And the way to get media from the browser is WebRTC. So, let's make one more bicycle to have WebRTC - VoIP bridge.
There are many projects around to fill this gap. FreeSwitch (mode_verto or mod_sofia), Kamailio + RTPEngine are just to mention some.
The idea of this small proof of concept - get audio and video streams separated and treated separately. Why - to have audio part handled by SIP (passed to Asterisk, more precisely) and video (or screen sharing part in the future) - by Janus SFU unit (VideoRoom plugin)
Project is just a set of 3 docker containers running in network host mode (just don't want to play around with NAT and all this stuff) and glued together with docker-compose. Nginx as a web server, Janus as Janus WebRTC server, and Asterisk as SIP application server.
Web part is just reworked and gloriously copy-pasted from original Janus demos.
This project is intended to be used as a playground for future experiments and donor of code for other projects.
Repo with project on GitHub.
Some of the pictures not to be so boring:
Audio is passed to Asterisk via SIP plugin, and Video is handled by EchoTest plugin.
Point, this one is tested on a VPS with a Let'sEncrypt certs to test it mostly "in the wild" and also there are many restrictions in modern browsers about WebRTC and security, which means even over LAN you need to have pure HTTPS.