User guide
118 RealCT Direct API Developer Guide
Chapter 4: E1 Networking
This second approach is easier to implement because it does not
involve separate threads. However, RHT_WAIT_LINE_OFF
only runs when a VP function is running. If the application
spends long periods of time performing non-VP functions, a
disconnect would not be reported until the next VP or line
function runs. This could keep the line busy longer than
necessary. If this delay is not acceptable, then use a separate
thread to monitor the line while no VP functions are running.
Since RHT_WAIT_LINE_OFF is an exclusive function, you
cannot start any other exclusive functions when you start a VP
function with ‘LineTerm0’ set.