Intercept calls to extension -

Arch = x86
Asterisk = 1.8.20
FreePBX = 2.8.1.4

I am sure this is some kind of basic question. But I would like to play a custom recording to every caller. Basically intercept calls from any source to any extension.

I was able to achieve this by placing on “/etc/asterisk/extensions_override_freepbx.conf” a “Gosub” on the macro-dial-one context.

[macro-dial-one]
include => macro-dial-one-custom
exten => s,1,GoSub(subPlayRec,start,1())

I would like to know if I can do this in a more “clean” way.
I would really like to find out what are the last context to be executed before ringing in an extension.

Thanks
nico