|
lineSetCallTreatment
The lineSetCallTreatment function sets what sounds a party on a call that is unanswered or on hold
will hear. Except for basic parameter validation, it is a straight pass-through by
TAPI to the service provider.
LONG lineSetCallTreatment(
HCALL hCall,
|
| DWORD dwCallTreatment
|
| );
|
|
Parameters
hCall
Handle to the call. The application must have OWNER privilege.
dwCallTreatment
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 Values
Returns a positive request identifier if the asynchronous operation starts;
otherwise, 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 generating using standard Win32
functions such as the multimedia Wave API.
See Also
LINEADDRESSCAPS
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Unix Manual Pages
|