CTI32 Class Library

cti.OpenT1Port Method 

Opens a single channel on a Dialogic board DTI Interface. When you are using a T1 board, you must open the DTI interface (this function call) AND the voice resource port. For SCbus programming, you must the CTIRoute() them together. The function also can be used to open the board to set board-level parameters.

[Visual Basic]
Public Shared Function OpenT1Port( _
   ByVal portname As String, _
   ByVal board As Integer _
) As Integer
[C#]
public static int OpenT1Port(
   string portname,
   int board
);

Parameters

portname
The name of a valid Dialogic device. This is a pointer to a string that contains the board number and channel. For example for board 1 channel 1, the name would be dtiB1T1. Board 2 channel 4 would be dtiB2T4. If you want to set DTI board-level parameters, you use the function to open the board. The port_name of the board would be something like dtiB1.
board
Set to 1 (TRUE) if you are opening a board – not a specific channel on a board. Otherwise send a 0 (FALSE) if you are opening a channel.

Return Value

-1=Failure. DTI device handle if successful

See Also

cti Class | CTI32NetLib Namespace