A 100% working solution is available on the next fop2 release, the current release will work when you record on the leg of the call that matches the uniqueid that is generated in the CDR (problem is that if you chose the other leg, then the recording is done but not linked to the CDR). So, you will have to wait to the next fop2 release (in any version, you have to edit fop2.cfg and set monitor_exec=recordings_elastix.pl), this script is for the recordings to show in the ELASTIX recordings interface, not in the FOP2 recordings interface. If you use the recordings_fop2.pl file, then it will work in the native recording interface in fop2 (that is disabled in the elastix version), and that works for any recording no matter direction or leg.
Best regards,