property OnModemCallerID : TModemCallerIDEvent
TModemCallerIDEvent = procedure(
Modem : TApxCustomModem; ID, IDName: string) of object;
Defines an event handler that is generated when Caller ID information is detected.
If the modemcap structure supports Caller ID configurations, the modem will be appropriately initialized to respond to the Caller ID signals provided for incoming calls. Internal TApxDataPackets will be initialized to detect the Caller ID responses from the modem. When Caller ID responses are detected, the OnModemCallerID event will be generated.
Modem is the TApxCustomModem component that generated the event. ID is the identification reported by the Caller ID signal for the number field (usually the caller's phone number). IDName is the identification reported by the Caller ID signal for the name field (usually the caller's subscribed name).
In most countries, the telephone company supplies the Caller ID information between the first and second rings. A typical format is shown in the following:
DATE: MM/DD/YY<CR><LF>
TIME: HH:MM:SS<CR><LF> {24-hour format}
NUMBER: {variable content}<CR><LF>
NAME: {variable content}<CR><LF>
Some telephone companies provide information in a different order, different format, or even different information entirely. The TApxModem will detect the NUMBER and NAME responses. Additional responses can be gathered using your own TApxDataPackets.