CTI32 Class Library

cti.SetCap Method 

Sets a Cap parameter. The cap structure controls the behaivor of Call progress.

[Visual Basic]
Public Shared Function SetCap( _
   ByVal chdev As Integer, _
   ByVal fieldp As String, _
   ByVal val As Integer _
) As Integer
[C#]
public static int SetCap(
   int chdev,
   string fieldp,
   int val
);

Parameters

chdev
The channel device handle.
fieldp
Which parameter you are interested in setting the value of. Pass a string constant representing the field to set. I.E. “ca_nbrdna” sets the ring time out for call progress. For a complete listing of these parameters, see Table 10 (Section 4.1) in the Voice Reference manual for NT (Volume II)
val
Value to set.

Return Value

-1 if unsuccessful. 0 if successful.

See Also

cti Class | CTI32NetLib Namespace