Setting up calling rules

Dynamic Routes Module - PBX GUI - Sangoma Documentation (atlassian.net)

Setting up Boss/Secretary using Dynamic Routes - FreePBX / Tips and Tricks - FreePBX Community Forums

This is an attended transfer in asterisk; you’ll need to look how to implement this on your specific phone type.