Dialogic 05-0867-005 Table Top Game User Manual


 
reject a request to retrieve a held call cc_RetrieveRej( )
211
Not all ISDN Network cause/error codes are universally supported across
switch types. Before using a particular cause code, compare its validity with
the appropriate switch vendor specifications.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include <srllib.h>
#include <dtilib.h>
#include <cclib.h>
main()
{
char *devname = dtiB1T1;
LINEDEV ldev;
.
.
.
.
if ( cc_Open( &ldev, devname,0)<0)
{
printf("Error opening device: errno = %d\n", errno);
exit(1);
}
if ( sr_enbhdlr( ldev,CCEV_HOLDCALL,HoldCallHdlr)<0)
{
printf( "dtiEnable for HoldCallHdlr failed: %s\n",
ATDV_ERRMSGP( SRL_DEVICE ) );
return( 1 );
}
if ( sr_enbhdlr( ldev,CCEV_RETRIEVECALL,RetrieveCallHdlr)<0)
{
printf( "dtiEnable for RetrieveCallHdlr failed: %s\n",
ATDV_ERRMSGP( SRL_DEVICE ) );
return( 1 );
}
.
.
.
.
while (1)
{
/* wait for network event */
sr_waitevt(-1);
}
cc_Close(ldev);
}
/***************************************************/
/* HoldCallHdlr - accept the hold call request */
/***************************************************/
int HoldCallHdlr( )
{