contents.gifindex.gifprev1.gifnext1.gif

AnswerCall method

This method is used to accept an incoming call on a telephone line. When a call is received on a line, the IncomingCall event is fired to your program. The IncomingCall event signals your program that a connection is available. To accept the connection, your program will need to call this method.

AnswerCall must be used to connect to the line before any other operations may be performed (except closing the line). When your program is finished processing the call, it should use the Hangup method to terminate it.

If your program does not want to accept the call, it should use the RejectCall method. When an IncomingCall event is received, either the AnswerCall method or the RejectCall method must be used. If neither is used, then the line will be unable to accept any future incoming calls.

Type

Arguments: Rings - the number of rings to wait before answering long integer

Returns: A long integer status code (see ActiveAG Status codes)

Property interactions: This method is sensitive to the RejectCalls property.