Kamailio is designed both to manage trunks within an existing network and to allow access to it, that is, it can be arranged as the first element of the network, exposed to the internet, where through its security modules and DDoS it would be in charge of control the legitimate access of those who do not.
That is, it can play the role of SBC.