Placing a call

To place a call:

  1. Create a line configuration instance for the line.
    You instantiate
    TTelephoneLineConfigurationData with a TStandardText instance that contains the phone number for the line.
  2. Create a line handle.
  3. Create and place the call.
    To determine whether or not the call connects, call GetStatus on the call handle.
      TStandardText   lineNumber = TStandardText("777-7777");
      TTelephoneLineConfigurationData     lineConfiguration(lineNumber);
      TTelephoneLineHandle    aLineHandle(lineConfiguration);
      
      // Create a TStandardText instance for the number you want to call.
      TStandardTextaNumber = TStandardText("974-0001");
      
      TTelephoneCallHandle*   aPhoneCall=aLineHandle.CreateAndPlaceCall(aNumber);
      
      // Disconnect call.
      aPhoneCall->HangUp();
      delete  aPhoneCall;

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker