int sm_tdmrx_create(struct sm_tdmrx_create_parms *tdmrxp)
typedef struct sm_tdmrx_create_parms { tSMTDMrxId tdmrx; /* out */ tSMModuleId module; /* in */ tSM_INT stream; /* in */ tSM_INT timeslot; /* in */ enum kSMTimeslotType type; /* in */ } SM_TDMRX_CREATE_PARMS;
Allocates, on a specific module, a new TDM[rx] to receive incoming TDM data. The TDM[rx] will receive it's data from the specified stream and timeslot. The streams which can be used with this call depend on the type of Prosody carrier card being used. They are special internal streams which are only accessible to Prosody and the switch driver. All data received by the tdmrx can be read from its datafeed. The datafeed may be obtained using sm_tdmrx_get_datafeed().
If the call completes successfully, the parameter tdmrx will be set to the identifier for that tdmrx.
On Prosody X this function requires the module datafeed to have been downloaded.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.