Synopsis:
tdm_chan=CCcreateTDM(port,chan)
Arguments:
port – The logical E1/T1 port number.
channel – The channel number.
Description: This function creates a TDM endpoint for the port and channel specified by the port and chan arguments. The port and chan must reside on a board the supports TDM end-points (e.g Prosody X) and upon success it returns a TDM channel handle which should be used in all future function calls that reference this TDM end-point. The internal Prosody stream and time slot and module id are obtained from the internal data associated with the port and chan and are used when creating the TDM endpoint.
The function creates tdmprx and tdmtx end-points to allow RTP data to be transmitted to and received from a data feed and transmittted onto the internal TDM stream and timeslot. This function maps to the Aculab sm_tdmrx_create() and sm_tdmtx_create() functions.
To create a TDM endpoint for an VOX channel you should use the SMcreateTDM(vox_chan) function.
Once created then the functions SMtraceTDM() and SMdestroyTDM() can be used to trace and release the created TDM channel (i.e there is no CCtraceTDM() or CCdestroyTDM() as these would be identical to the above functions).
Returns: Upon success this function returns a TDM channel handle, otherwise it returns a negative error code..