# Accepting calls through gateway applications

A gateway switching application goes through the following phases when accepting a call:

Phase | Description
1 | The inbound side of the application receives a call.
2 | The call is put on hold by accepting the call with nccAcceptCall and outputting silence on the line and the outbound side of the application dials the received address.
3 | When the outbound side of the application receives an indication that the called terminal is free and ringing, it connects the voice path so that the caller hears the ringing tone from the called equipment.
4 | When the outbound call is answered, the application also answers the inbound call with no rings, instructing the TCP to send the answer signal to the network immediately. Both calls are now in a connected state.

The following illustration shows how gateway applications accept inbound calls: