This is how to trigger On-Demand Call Recording, which means middle of conversations, activate the call recordings-

A. “In FreePBX, 1 – Ensure Feature Code “In-Call Asterisk Toggle Call Recording” is enabled and set to *1.

B On the General Settings page, add “wW” to “Asterisk Dial command options” making its value “trwW”. Also, add “wW” to “Asterisk Outbound Dial command options.” Hover over the labels for a full description of these options.

C On the extension, make sure “Record Incoming” and “Record Outgoing” are set to “On Demand”.”