Previous PageTable Of Contents../index.htmlIndexNext Page

cc_ResultValue( )

Description | Cautions | Example | Errors | See Also

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)

Top Of PageDescription

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).

Top Of PageCautions

None

Top Of PageExample

Top Of PageErrors

If the function returns < 0 to indicate failure, use the cc_ResultMsg( ) function to interpret the returned value. Error codes are defined in Section 7.2. Error Handling and in the files ccerr.h, isdnerr.h, and isdncmd.h.

Typically, a < 0 return code for the cc_ResultValue( ) function indicates that the function reference (the event block pointer) is not valid for the function call.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated December, 2001