Prosody high level BFILE play/record: API: sm_record_bfile_progress

Prototype Definition

int sm_record_bfile_progress(SM_BFILE_RECORD_PARMS *file_parms)

Parameters

file_parms
A pointer to a structure passed into sm_record_bfile_start() to start recording which has not yet indicated that it has finished.

Description

This is the same as sm_record_bfile_progress_istatus() except it first determines the record status.

If the current record status for the channel is known, then the sm_record_bfile_progress_istatus() variant of the call should be used with initial_status set to this status.

Returns

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 BFILE play/record API.