This topic has not yet been rated - Rate this topic

lineSetCallTreatment function

Applies to: desktop apps only

The lineSetCallTreatment function sets the sounds a party on a call that is unanswered or on hold hears. Except for basic parameter validation, it is a straight pass-through by TAPI to the service provider.

Syntax

LONG WINAPI lineSetCallTreatment(
  HCALL hCall,
  DWORD dwTreatment
);

Parameters

hCall

Handle to the call. The application must have OWNER privilege.

dwTreatment

One of the call treatments supported on the address on which the call appears, as indicated by LINEADDRESSCAPS. LINEERR_INVALPARAM is returned if the specified treatment is not supported.

Return value

Returns a positive request identifier if the asynchronous operation starts; otherwise, the function returns one of these negative error values:

LINEERR_INVALCALLHANDLE, LINEERR_INVALCALLSTATE, LINEERR_INVALPARAM, LINEERR_NOMEM, LINEERR_NOTOWNER, LINEERR_OPERATIONFAILED, LINEERR_OPERATIONUNAVAIL, LINEERR_RESOURCEUNAVAIL, LINEERR_UNINITIALIZED.

Remarks

The use of call treatment functionality should be limited to controlling of legacy equipment. New equipment is generally designed so that instead of call treatments being generated by external switching equipment, calls would be connected to PC-based audio sources and signals generated using standard functions such as the multimedia Wave API.

Requirements

TAPI version

Requires TAPI 2.0 or later

Header

Tapi.h

Library

Tapi32.lib

DLL

Tapi32.dll

See also

TAPI 2.2 Reference Overview
Supplementary Line Service Functions
LINEADDRESSCAPS

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ