Prosody I.460 Mux: API: sm_i460mux_datafeed_connect

Prototype Definition

int sm_i460mux_datafeed_connect(struct sm_i460mux_datafeed_connect_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_i460mux_datafeed_connect_parms {
	tSMDatafeedId data_source;				/* in */
	tSMI460muxId i460mux;					/* in */
	tSMI460InputId input_id;				/* out */
} SM_I460MUX_DATAFEED_CONNECT_PARMS;

Description

Connect a datafeed to one of the inputs of the I.460 mux. Up to eight datafeeds may be connected to a single I.460 mux. The datafeed is assumed to be carrying a datastream that has already been uprated by being masked into the correct bit(s) of each octet. This can be achieved by using the datatx firmware module, configured with an appropriate i460_mask. It is up to the user to ensure that the masks used by different datafeeds connected to the same I.460 mux do not overlap.

Fields

data_source
The datafeed object to be connected.
i460mux
The mux to connect the datafeed to.
input_id
The mux input to which the datafeed has been connected.

Returns

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


This function is part of the Prosody I.460 Mux API.