This function is only in Prosody version 1 (see also the conversion guide for further details).
int sm_record_how_terminated(struct sm_record_how_terminated_parms *howtermp)
typedef struct sm_record_how_terminated_parms {
tSMChannelId channel; /* in */
enum kSMRecordHowTerminated {
kSMRecordHowTerminatedNotYet,
kSMRecordHowTerminatedLength,
kSMRecordHowTerminatedMaxTime,
kSMRecordHowTerminatedSilence,
kSMRecordHowTerminatedAborted,
kSMRecordHowTerminatedError,
} termination_reason; /* out */
tSM_UT32 termination_octets; /* out */
} SM_RECORD_HOW_TERMINATED_PARMS;
This call allows an application to determine if and how the last recording on channel channel was terminated. On version 2 (TiNG) this functionality is provided by sm_record_status().
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody speech processing API.