CCuse
Previous Topic  Next Topic 

Synopsis:

CCuse(port,timeselot[,flag])


Arguments:

       port The logical E1/T1 port number.

channel The channel number.

[flag] Set to 1 (default) to cause task to jump to onsignal if a CS_REMOTE_DISCONNECT is received.   Set to 0 to stop task jumping to onsignal.


Description:     This function allows the current Telecom Engine task to be associated with a port and channel in such a way that if a call on the specified port and channel receives a CS_REMOTE_DISCONNECT event then the task will be forced to jump to its onsignal function.               The default value of flag if it is not specified is 1.    To clear the association between the task and a port and channel so that it will no longer jump to the onsignal function upon receiving a CS_REMOTE_DISCONNECT event then the flag should be set to 0.


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