Set sip and tel default apps by script?

Contributor III

Anyway via script to set the sip & tel apps. By default it's FaceTime and if you want to change you have to log in to FaceTime and open the prefs and then you can select the app you want or you can use a pref pane like SwiftDefaultApps but I need to do it on mass via Jamf.

I've tried various ways and also looked at cdef and duti but both don't seem to have the ability to set the tel app and the sip app.