This function is only in Prosody version 2 (TiNG).
int sm_record_file_complete_tstatus(SM_FILE_RECORD_PARMS *file_parms, SM_RECORD_STATUS_PARMS *status_parms)
This is the same as sm_record_file_complete() except that on successful completion the status_parms structure will contain the termination status of the recording. The fields in the status_parms structure are only valid when the function returns success.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody high level FILE play/record API.