5. ISDN Function Reference
49
value <0 is returned along with the CCEV_TASKFAIL event. However,
when an asynchronous function call fails, a result value of 0 (indicating
success) can be returned along with the CCEV_TASKFAIL termination
event, which indicates failure. This means that the library has accepted the
request that was sent to the firmware, but at that moment, the request cannot
be fulfilled due to specific circumstances or conditions. To retrieve the reason
for the failure, use the cc_ResultValue( ) function. Use the cc_ResultMsg( )
function to interpret the value.
For more information on CCEV_TASKFAIL and other termination events, see
Chapter 7. ISDN Events and Errors. For information on handling events, see
Section 8.2.2. Handling Events.