SMcreateTDM
Previous Topic  Next Topic 

Synopsis:

       tdm_chan=SMcreateTDM(vox_chan)

Arguments:

       vox_chan                 The voice channel

       


Description:   This function creates a TDM endpoint for the voice channel specified by vox_chan.    The vox_chan must reside on a module on a board the supports TDM end-points (i.e Prosody X) and upon success it returns a TDM channel handle which should be used in all future function calls that reference this TDM.        The internal Prosody stream and time slot and module id are obtained from the internal data associated with the vox_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 E1 channel you should use the CCcreateTDM(port,chan) function.


Returns:   Upon success this function returns a TDM channel handle, otherwise it returns a negative error code..