place an active call on hold cc_HoldCall( )
165
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include <srllib.h>
#include <dtilib.h>
#include <cclib.h>
void main()
{
LINEDEV ldev;
CRN crn_buf = 0;
char *devname = "dtiB1T1";
if ( cc_Open( &ldev, devname,0)<0)
{
printf("Error opening device: errno = %d\n", errno);
exit(1);
}
printf("Waiting for call\n");
if ( cc_WaitCall(ldev, &crn_buf, NULL, -1, EV_SYNC)<0)
{
procdevfail(ldev);
.
}
if ( cc_AnswerCall(crn_buf, 0, EV_SYNC)<0)
{
procdevfail(ldev);
.
}
.
.
if ( cc_HoldCall(crn_buf, EV_SYNC) <0)
{
procdevfail(ldev);
.
}
.
.
if ( cc_RetrieveCall(crn_buf, EV_SYNC)<0)
{
procdevfail(ldev);
.
}
.
.
/* Drop the call */
if ( cc_DropCall(crn_buf, NORMAL_CLEARING, EV_SYNC)<0)
{
procdevfail(ldev);
.
}
if ( cc_ReleaseCall(crn_buf)<0)
{
procdevfail(ldev);
.