Kamailio/FusionPBX and Microsoft Direct Routing Integration

Hi All,

It would be nice to have Fusion/Kamailio integrate with Microsoft Direct Routing.

If anybody has any ideas on how to go about this or any code/scripts that they would not mind sharing that would be good.

We took a run at this a couple of months ago and ended up just going to a proprietary SBC. We're still experimenting but basically we're probably going to put an AnyNode SBC in between the Microsoft stuff and our Freeswitch stuff.

After many hours of Googling I only heard the odd whisper of someone making Freeswitch work with MS direct routing and there were little to no details. Personally I didn't have the mental bandwidth to deconstruct it and make it all play nice, so we're playing with the demo version of AnyNode.

I'll update this thread with progress but that project is on the back burner for now.

PS for Daz. Microsoft direct routing (or Microsoft phone system, its confusing) is basically just a connector into MS 365 stuff to allow outbound and inbound calling to the PSTN from Teams and Skype for business. They use a bunch of witchcraft involving options messages and TLS with certificates only from approved authorities to make it all work. There's an approved SBC list which is short and you're supposed to stick to them.
Last edited:
Are you still thinking you'll have a crack at this when you're bored @bcmike? I don't think I have the technical know-how to pull it off myself, but will be keeping an ear to the ground and happy to help out/test if anyone is wanting to try it...
Update: I talked with Mack at dSIPRouter about adding teams as an endpoint and he's willing to do it but its going to require some dev $$$. If anyone's interested in contributing to this feature DM me an we'll co-ordinate with Mack. I'd rather pay Mack than Anynode or Ribbon.