// Create a line handle. TStandardText lineNumber = TStandardText("777-7777"); TTelephoneLineConfigurationData lineConfiguration(lineNumber); TTelephoneLineHandle aLineHandle(lineConfiguration); // Create a feature control. TTelephoneHoldFeatureControl* holdControl; holdControl = aLineHandle.CreateFeatureControl(TTelephonLineFeature::kHold); // Create and place a call. TStandardText aNumber = TStandardText("974-0001") TTelephoneCallHandle* aPhoneCall = aLineHandle.CreateAndPlaceCall(aNumber); // Activate the feature. if ((aPhoneCall->GetStatus() == TTelephoneStatusNotification::kCallActive) && (canHold)) { holdControl->PutOnHold(); // Reconnect the call. holdControl->Reconnect(*aPhoneCall); }