Click or drag to resize
TapiLinePickup Method (String, String)
Picks up a call ringing at the specified phone number or extension.

Namespace: Traysoft.AddTapi
Assembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax
public TapiCall Pickup(
	string number,
	string group
)

Parameters

number
Type: SystemString
Number/extension whose call is to be picked up.
group
Type: SystemString
Group identifier to which the ringing station belongs. This parameter is required on some switches to pick up calls outside of the current pickup group.

Return Value

Type: TapiCall
A TapiCall object representing picked up call.
Exceptions
ExceptionCondition
TapiExceptionThe call was not picked up because a TAPI error occurred.
Remarks

For most telephony configurations group parameter can be null (Nothing in Visual Basic) and the application has to provide only number parameter. If supported by the telephony hardware, group parameter can be specified by itself with a null (Nothing in Visual Basic) for the number parameter to perform a group pick up.

When a call has been picked up successfully, the application is notified by the CallState event about call state changes.

If TapiAddress.SupportsPickupCallWaiting is true, Pickup can be used to pick up a call for which the user has audibly detected the call-waiting signal but for which the provider is unable to perform the detection. This gives the user a mechanism to "answer" a waiting call even though the service provider was unable to detect the call-waiting signal. Both number and group parameters must be null (Nothing in Visual Basic) to pick up a call-waiting call. After Pickup has been used to pick up the second call, SwapHold(TapiCall) can be used to toggle between them.

See Also