|
AG Access Event
|
Description
|
|
|---|
|
ADIEVN_SEIZURE_DETECTED
|
Informational event generated when a line is seized by the telephone network.
Examples of a line-seized event include:
|
|
|
Line Type Wink-start Loop-start
|
Condition Off-hook detected. The leading edge of the first ring.
|
|
ADIEVN_INCOMING_CALL
|
Event that signifies the transition of the call from the Idle state to the Incoming Call state. It is generated after the telephone network delivers the call to AG Access. The following examples illustrate conditions that generate an incoming call event:
|
|
|
Line Type Wink-start
Loop-start
|
Condition All required destination address digits have been received by AG Access. adiGetCallStatus may be invoked to get the called party and the calling party digits. A specified number of rings have been received, along with optional caller ID information (Refer to the loop-start parameters in the AG Access Function Reference Manual).
|
|
|
The application should respond to the incoming call event by invoking either adiAnswerCall or adiRejectCall.
Wink-start protocols require the application to respond within a specified period of time. If the application fails to respond within the given period, AG Access automatically rejects the call and generates an ADIEVN_REJECTING_CALL event.
|
|
ADIEVN_ANSWERING_CALL
|
After the application invokes adiAnswerCall, this event is generated to acknowledge that AG Access has begun executing the answer call function. Once this event is received, the call state transitions to Answering Call.
|
|
ADIEVN_CALL_CONNECTED
|
After the application invokes adiAnswerCall, and receives the ADIEVN_ANSWERING_CALL acknowledgment, AG Access executes the telephone network procedures for accepting the call and establishing the connection. Once the connection is established, the call connected event is generated and the call state transitions to Connected.
|
|
ADIEVN_REJECTING_CALL
|
If the application invokes adiRejectCall, the rejecting event is generated once AG Access begins executing the specified reject method. Rejection of incoming calls is protocol-dependent.
Loop-start lines can only reject calls by not answering them. The board will report that the call is disconnected when the incoming ring has stopped. Wink-start lines may use one of four methods of call rejection:
- Playing reorder tones
- Playing busy tones
- Indefinitely playing ring tones
- Playing application-provided audio (e.g., SIT)
The method of rejection is returned in the value field of the event. The rejecting event is also generated if the application fails to respond to the incoming call event as described above. In this case, the value field will contain "host timeout."
|
|
ADIEVN_CALL_DISCONNECTED
|
This event is generated when the calling party disconnects. It can occur in any call state. The disconnect event contains the reason for disconnection in the value field.
|
|
ADIEVEN_CALL_RELEASED
|
After the application invokes adiReleaseCall, AG Access generates the call released event when its internal state is reset to Idle.
|