I want to send the recorded file of the call session to a REST API once the call is terminated. I read through the Freeswitch docs and am able to record a call and save it to a .wav file. Now I want to POST the file to a REST API on a remote server, I think the Post Processing Recordings in the Dialplan and mod_curl will be of some help to me but I am unable to understand how I can make the two work together to achieve what I want. I am new to Freeswitch, these are the links that I am following:
https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+record_session
https://freeswitch.org/confluence/display/FREESWITCH/mod_curl