DiY intercom with FreePBX an Android Phone and SR-201 ETH Relay

I have installed FreePBX 17.0.19.21 and it works perfectly.
I would like to use an Android phone as an external video intercom and an SR-201 ethernet relay card to control the lock and lights.
Both on the external Android phone and on the internal Android tablet I have installed the PortSip App client that already works perfectly in video calls.
Could you help me in configuring FreePBX to run the lock and lights command script using DTMF tones during the call?
Thank you for your help!!!

This thread may help:

If not, post details of what you have tried and what goes wrong.