Record all SIP trunk Calls

Dear friends!
I’m trying to record all SIP trunk calls without success.
Could you please help me to force recording all calls through a specific SIP trunk.
As All calls are from trunk to trunk, I can not specify recording as always on extension setup.

here is the diagram,

Gateway A – -Trunk 1----FreePBX 1-----Trunk 2----FreePBX 2----Trunk 3—Gateway B

What I’m trying to do is to record calls from Gateway A to Gateway B at FreePBX 1 or 2

Thanks so much!

I’m seeking for the correct solution but can do it wrong way only.

Now i insert 2 lines to extensions_additional.conf to context [ext-trunk]. I dont like this solution :frowning: