Using .call file

Hi all,
I want to know if it’s possible to execute a .call file when a call to asterisk is made instead of just randomly executing it ?

You would not use a .call file for that, just code it in the dial plan.

FreePBX has hooks all over the dial plan for custom code.

extensions_custom.conf is where you can put your own code.