gets an error/cause code cc_ResultValue( )
201
Name:
int cc_ResultValue(evtdatap)
Inputs:
void *evtdatap
• pointer to an event block
Returns:
0 on success
< 0 on failure to retrieve the error/cause value
> 0 error/cause value associated with event
Includes:
cclib.h
Category:
System tools
Mode:
synchronous
Technology:
BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_ResultValue( ) function gets an error/cause code of an event. The code
identifies the return value of a function or the cause of an event. Result values are
located in isdnerr.h and isdncmd.h. Use cc_ResultMsg( ) to return the text
definition for the code.
NOTE:
See Section 7.2. Error Handling for a listing of error/cause codes.
Parameter Description
evtdatap:
Points to the event data block. This pointer may be acquired via
sr_getevtdatap( ), an element of the Dialogic Standard
Runtime Library (SRL).
!
! !
!
Cautions
None
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include “srllib.h”
#include “dtilib.h”
#include “cclib.h”
main()
{
.
.
.