accept a hold request from remote equipment cc_HoldAck( )
161
Name:
int cc_HoldAck(crn)
Inputs:
CRN crn
• call reference number
Returns:
0 on success
<0 on failure
Includes:
cclib.h
Category:
Hold and Retrieve
Mode:
synchronous
Technology:
BRI/2; BRI/SC; PRI (DPNSS and Q.SIG only)
!
! !
!
Description
The cc_HoldAck( ) function allows the application to accept a hold request from
remote equipment. This function is called only after the call is in the Connected
state and after the CCEV_HOLDCALL event is received. See Section 7.1. Event
Categories for information on CCEV_HOLDCALL.
Parameter Description
crn:
The call reference number. Each call needs a CRN.
!
! !
!
Cautions
A call must be in the Connected state and the CCEV_HOLDCALL event must be
received before the cc_HoldAck( ) function is invoked or the function will fail.
!
! !
!
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);