User guide

58 RealCT Direct API Developer Guide
Chapter 3: T1 Networking
Handling Incoming Calls
Handling incoming calls involves the following steps:
Detect an incoming call
Detect digits
Send control tones
Answer the call
Monitor for a disconnect
Terminate the call
Detecting an Incoming Call
The application calls RHT_WAIT_LINE_ON when it is ready to
receive a call. This function waits until it receives a seizure or a
ring, then sends any acknowledgment signals required by the
protocol. After acknowledging the call, if required, the function
waits for an amount of time specified by the
RDG_LOCAL_ACK_GUARD_TIME parameter, then returns.
The application is then ready to start receiving digits. The
series of events involved in detecting an incoming call is shown
in Table 13.
Table 13. RHT_WAIT_LINE_ON Sequence
Action Duration
Receive seizure or ring
Send acknowledgment
(if required)
Wait RDG_LOCAL_ACK_GUARD_TIME
Return