cc_HoldCall( ) place an active call on hold
166
}
/* Close the device */
if ( cc_Close( ldev)<0)
printf("Error closing device, errno = %d\n", errno);
}
int procdevfail(LINEDEV ldev)
{
int reason;
char *msg;
reason = cc_CauseValue(ldev);
cc_ResultMsg(ldev,reason,&msg);
printf("reason = %x - %s\n",reason,msg);
}
!
! !
!
Errors
If the function returns a value < 0 to indicate failure, use the cc_CauseValue( )
function to retrieve the reason code for the failure. The cc_ResultMsg( ) function
can be used to interpret the reason code. Error codes are defined in the files
ccerr.h, isdnerr.h, and isdncmd.h.
Error codes from the cc_HoldCall( ) function include the following:
Error Code Description
ERR_ISDN_LIB | E_ABORTED
Task aborted by the cc_Restart( )
function
ERR_ISDN_LIB | E_BADSTATE
The cc_Restart( ) function is in
progress
ERR_ISDN_FW | ISDN_BADSTATE Cannot accept event in current state
ERR_ISDN_LIB | E_ISNULL_PTR Null pointer error
!
! !
!
See Also
•
• •
• cc_RetrieveCall( )