# Answering calls

To answer a call, an application invokes nccAnswerCall. You can specify a number of ring tones for nccAnswerCall to play before answering the call.

Note: Any ring tones generated prior to calling nccAnswerCall do not count towards the number of ring tones specified with nccAnswerCall.

When nccAnswerCall is invoked, the application receives NCCEVN_ANSWERING_CALL. The call is now in the answering call state. The call remains in this state while the NCC API attempts to answer the call and establish a connection. Subsequent receipt of NCCEVN_CALL_CONNECTED means that the call connection attempt was successful, and the call is now in the connected state. NCCEVN_CALL_DISCONNECTED indicates that the call answering attempt was unsuccessful, and the call is in the disconnected state.

If the remote party disconnects while the application is answering the call, the application receives NCCEVN_CALL_DISCONNECTED. In this case, NCCEVN_ANSWERING_CALL is not delivered.