int sm_get_stream_info(struct sm_stream_info_parms *streaminfop)
typedef struct sm_stream_info_parms {
tSMModuleId module; /* in */
tSM_INT stream; /* in */
char serial_no[kSMMaxSerialNoText]; /* out */
tSM_INT serial_port_ix; /* out */
tSM_INT timeslot_count; /* out */
} SM_STREAM_INFO_PARMS;
Retrieves information about a TDM stream associated with ProsodyS virtual card and provided by a thin TDM interface card installed in system.
On entry the parameter stream indicates module TDM stream for which information is required. On return the parameter serial_no indicates serial number of thin TDM interface card, serial_port_ix indicates stream index (starting from zero) relative to that thin TDM interface card. timeslot_count indicates number of timeslots in stream.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.