int sm_record_file_progress(SM_FILE_RECORD_PARMS *file_parms)
This is the same as sm_record_file_progress_istatus() except it first determines the record status.
If the current record status for the channel is known, then the sm_record_file_progress_istatus() variant of the call should be used with initial_status set to this status.
The same value as stored in the status field of the structure
pointed to by
file_parms
which is 0 or ERR_SM_PENDING
if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody high level FILE play/record API.