Prosody Framer: API: sm_framer_get_datafeed

Prototype Definition

int sm_framer_get_datafeed(struct sm_framer_datafeed_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_framer_datafeed_parms {
	tSMFramerId framer;					/* in */
	tSM_INT direction;					/* in */
	tSMDatafeedId datafeed;					/* out */
} SM_FRAMER_DATAFEED_PARMS;

Description

Request a datafeed identifier from a Framer . This identifier can subsequently used in a call such as sm_tdmtx_datafeed_connect() or sm_channel_datafeed_connect().

Fields

framer
The framer from which to obtain a datafeed.
direction
The direction of datafeed to fetch. If direction is 0, then the enframer-side datafeed is fetched. If direction is 1, then the deframer-side datafeed is fetched.
datafeed
The datafeed object associated with the Framer .

Returns

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


This function is part of the Prosody Framer API.