Opens a single channel on a Dialogic board. This call can also be used to open up a board level resource so that you can CTISetParm() various Dialogic board level parameters.
[Visual Basic] Public Shared Function OpenVoicePort( _ ByVal portname As String, _ ByVal board As Integer, _ ByVal perfectcall As Integer _ ) As Integer
[C#] public static int OpenVoicePort( stringportname, intboard, intperfectcall );
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 dxxxB1C1. Board 2 channel 4 would be dxxxB2C4. If you are opening a board, this parameter would be dxxxB1 or dxxxB2.
board
Pass a 0 if this is opening a single channel on the board. Pass a 1 if this is opening the board for setting board level parameters.
perfectcall
0 = No PerfectCall Call progress, No Analog Caller ID. 1 = Enable PerfectCall call progress only. 2 = Enable Analog Caller ID only. 3 = Enable both PerfectCall and Analog Caller ID.
Return Value
channel device handle(chdev) if successful, -1 if error