Prosody generic: API: sm_get_stream_info

Prototype Definition

int sm_get_stream_info(struct sm_stream_info_parms *streaminfop)

Parameters

*streaminfop
a structure of the following type:
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;

Description

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.

Fields

module
A value obtained from sm_open_module() which indicates the module on which information is required.
stream
Stream number for which information required (or index of that stream relative to module)
serial_no
The serial number of card providing this stream.
serial_port_ix
Serial port on card providing this stream
timeslot_count
The count of timeslots in this stream.

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody generic API.