TApxModem.OnModemFail

TApxModem

property OnModemFail : TModemNotifyEvent 
TModemNotifyEvent = procedure (Modem : TApxCustomModem) of object;

Defines an event handler that is generated when a modem or connection failure is detected.

The OnModemFail event is generated if the modem could not be initialized, or if a connection could not be established. When dialing, this event is generated if the modem could not detect dial tone (if the configuration required dial tone), if the modems could not negotiate a mutually acceptable set of connection parameters, or if the remote party did not answer the call within DialTimeout seconds. When answering, this event is generated if the modems could not negotiate a mutually acceptable set of connection parameters, of if the connection attempt timed out.

Modem is the TApxCustomModem that generated the event. No other parameters are provided. The reason for the failure can be obtained from the FailureCode property.

See also: AutoAnswer, ConfigAndOpen, Dial, FailureCode, FailureCodeMsg