We used the latest stable Kamailio software (v5.3 in Summer 2020) running on a Debian Buster virtual machine.
We also use RTPEngine RTP proxying software to ensure all traffic including SIP and RTP goes through the SIP Proxy
We have our own configuration that allows the SIP Proxy to be used with remote apps and phones and simultaneously with Microsoft Teams for end users using Teams for making and receiving calls