Grandstream supplying SIP to Unifi Talk

Is it possible to use a Grandstream UCM (UCM6304) to provide SIP to Unifi talk out to a POTS line? If so, how do I set it up?

It would be easier to just use a Grandstream phone if you already have the UCM.

If it was just for the phone line, but I like being able to see my unifi cameras on the phone, as well as other integrations