CA_Close_CHP_Link()

Purpose

Disconnects a binding between a custom server and a channel process.

Libraries

Blueworx Voice Response library (libvae.a)

Custom Server library (libca.a)

Syntax

#include "CA_header.h"
int CA_Close_CHP_Link (
 short  link_id,
 int    wait_flag
);

Description

This subroutine attempts to release a previously allocated channel process from a custom server.

Parameters

link_id
The ID of the channel process.
wait_flag
A flag that indicates whether or not to wait for a response from the corresponding channel process. Valid values for this parameter are CA_WAIT and CA_NOWAIT. Using the CA_WAIT flag will cause the subroutine to wait up to a maximum of 2 hours.

Return codes

0
Successful
-1
Unsuccessful (global error number CA_errno is set to indicate the error)

Error names

CA_ACCESS_NOBUFS
CA_INV_LINK_ID
CA_LINK_NOT_OPEN
CA_NO_MSG_RECV
CA_NOT_INIT
CA_REQ_FAILED
CA_TERMINATING

Related information

CA_Open_CHP_Link(), CA_Ping_CHP_Link(), CA_Execute_State_Table().