int sm_record_file_stop(SM_FILE_RECORD_PARMS *file_parms)
Abort a previously initiated file recording (note this function assumes the current file recording is being progressed by a separate thread of execution and sm_record_file_complete() has been invoked).
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody high level FILE play/record API.