...
The first step we need to take on freeswitch is to download the record script "api_record.lua" Once downloaded, from the repo https://gitlab.expertflow.com/voice-recording-solution/freeswitch-scripts.git.
Now connect to the VM where freesiwtch is installed.
Now place it in the "scripts" directory of freeswitch. It can be found under "/usr/local/freeswitch/scripts/" or "/usr/share/freeswitch/scripts/" depending on whether you installed freeswitch from source or package, respectively.
...