int sm_switch_channel_output(struct sm_switch_channel_parms *switchp)
typedef struct sm_switch_channel_parms { tSMChannelId channel; /* in */ tSM_INT st; /* in */ tSM_INT ts; /* in */ enum kSMTimeslotType type; /* in */ } SM_SWITCH_CHANNEL_PARMS;
Assigns (or de-assigns) a timeslot to channel. No timeslot can be used as output by more than one channel at a time.
This function can be used with Prosody X cards in TDM only applications for backward compatibility. For new applications it is recommended that sm_tdmtx_create() and sm_tdmtx_datafeed_connect() be used. To use this function with a Prosody X card the module datafeed must be downloaded.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.