You can modify the state of the telephone line through a TTelephoneLineHandle.
TTelephoneLineConfigurationData uniquely specifies the telephone line to use. TTelephoneLineHandle provides member functions for initiating telephone call connections, determining the hook status of the line, and accessing telephone feature types.
Line status | Description | |
kOnHook | Line or handset is on-hook. | |
kOffHook | Line or handset is off-hook. |
You can create multiple instances of TTelephoneLineHandle for the same line and distribute them across task boundaries. This allows a user to run multiple programs that use the same line, such as an answering machine application and an auto-dial application.