CTI32 Class Library

cti.GetLastCauseCodes Method 

For PRI lines (or Global Call) – returns the last ISDN or GlobalCall cause values for the last DISCONNECT or ISDN Error event on the channel. This can be helpful in determining the reason for the call failure in the event of a CR_ERROR dialing return code.

[Visual Basic]
Public Shared Function GetLastCauseCodes( _
   ByVal chdev As Integer, _
   ByRef cause As Integer, _
   ByRef causeMessage As String, _
   ByRef cc As Integer, _
   ByRef ccMessage As String, _
   ByRef dropError As Integer _
) As Integer
[C#]
public static int GetLastCauseCodes(
   int chdev,
   ref int cause,
   ref string causeMessage,
   ref int cc,
   ref string ccMessage,
   ref int dropError
);

Parameters

chdev
The channel device handle
cause
Out. Code returned from ISDN CauseValue or the Global Call ResultValue.
causeMessage
String describing cause code.
cc
Global call cc_result
ccMessage
String describing cc code
dropError
Flag indicating whether a fatal PRI dropcall has occurred on the channel

Return Value

0

See Also

cti Class | CTI32NetLib Namespace