CTI32 Class Library

cti.SetGCOption Method 

Set some options which will control the behavior of the Global Call interface.

[Visual Basic]
Public Shared Function SetGCOption( _
   ByVal dev As Integer, _
   ByVal option As Integer, _
   ByVal optionValue As Integer _
) As Integer
[C#]
public static int SetGCOption(
   int dev,
   int option,
   int optionValue
);

Parameters

dev
The device returned from the CTIOpenGCPort() call
option
At this point there is only one option to set: 1 – SETCALLOPTION (default value is 1) This option controls the behavior of an outbound call. The default (1) is set for dialing out an ISDN PRI line. The gc_MakeCall sends in a call block with settings set for an ISDN call. For other protocols such as T-1 or Analog, you may want to set this to zero. Example: CTISetGCOption(dev,1,0);
optionValue
The value of the option to set

Return Value

0=successful -1 if error

See Also

cti Class | CTI32NetLib Namespace