Teams phone system is a significant additional licensing expense, it's definitely not free.
It's also not standards compliant, despite speaking a malformed version of SIP, so you can't just plug it into standard SIP Infrastructure and have it send and receive invites for calls, or send and receive SIP simple messages for texting.