Dialogic 05-0867-005 Table Top Game User Manual


 
resets the channel to Null state cc_Restart( )
197
* is recommended here.
*/
if ( cc_MakeCall(devhdl, &crn, dialnum, NULL, 20, EV_SYNC)
<0)
procdevfail(devhdl);
.
.
.
.
}
/* function to process error conditions */
int callfail(CRN crn)
{
LINEDEV ld;
cc_CRN2LineDev(crn,&ld);
procdevfail(ld);
}
int procdevfail(LINEDEV handle)
{
int reason;
char *msg;
reason = cc_CauseValue(handle);
cc_ResultMsg(handle, 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_Restart( ) function include the following:
Error Code Description
ERR_ISDN_LIB | E_ISBADIF Bad interface number
ERR_ISDN_LIB | E_ISBADCALLID Bad call identifier
ERR_ISDN_LIB | E_ISBADTS Bad time slot
!
! !
!
See Also
None