CClisten
Previous Topic  Next Topic 

Synopsis:

CClisten(port,channel,ts_handle)


Arguments:

       port The logical E1/T1 port number.

channel The channel number.

ts_handle The logical timeslot handle returned from CCgetslot()


Description:   This function causes the receive timeslot of the given port and channel to listen to the transmit timeslot that has been nailed to the external H.100 or SCBUS.        The ts_handle is a logical handle that references an external H.100 or SCBUS stream/timeslot as returned by CCgetslot() or SMgetslot() or which can be obtained by using the formula:


handle = stream * 4096 + timeslot


Where stream and timeslot are the stream and timeslot on the external H.100 or SCBUS.      For the SCBUS the stream is hardcoded to 24.


For example the following code makes channel 1 on port 0 listen to a voice channel so that any voice prompts played on the voice channel will be heard by the caller.


x=CClisten(0,1,SMgetslot(1));


(The SMgetslot() function is part of the Aculab speech module library CXACUDSP.DLL and is similar to the CCgetslot() function).

Returns: This function returns 0 upon success or a negative error code.