Asterisk gateway to hide contact information

Hi, folks!
I am new to Asterisk and trying to figure out how can I solve this task by Asterisk?
The main task
I need to hide contact information for two parties so that they don’t know each other’s contacts other than mine? And my service will be a gateway for such calls.
It seems to me that Asterisk can work with DB and when I get an incoming call we can get a phone number from DB with which we have to connect.
Maybe you can share with me some information about the best way to implement it or there was the same topic early.

Thanks in advance.