I want to be able to route sip invites from my on prem skype to either an on prem jabber server or out to office 365. It depends on who the recipient is. I am sure Kamailio can do this but I am absolutely at a loss on where to start.

I have tried a few different configs but I basically have to break our office communication to test. I am looking for some guidance on what to do. Thanks in advance!