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( intchdev, ref intcause, ref stringcauseMessage, ref intcc, ref stringccMessage, ref intdropError );
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