Previous PageTable Of Contents../index.htmlIndexNext Page

d42_closefeaturesession( )

Description | Cautions | Example | Errors

Name:

int d42_closefeaturesession(devh)

Inputs:

int devh

  channel descriptor

Returns:

ED42_NOERROR
-1

  if success

Includes:

D42LIB.H

Mode:

synchronous

Supports:

D/42-NS

Top Of PageDescription

The d42_closefeaturesession( ) function closes an open feature session on the specified channel, terminating the association between the telephone extension and the channel number. It also disables the asynchronous events that were enabled for the feature session and disallows the use of any functions that require an open feature session, such as d42_writetodisplay( ). The d42_closefeaturesession( ) function requires that the feature session be previously opened.

Parameter

Description

devh:

specifies the valid channel device descriptor obtained by a call to dx_open( ) and on which the feature session is open

Top Of PageCautions

This function requires an open feature session.

Top Of PageExample

Top Of PageErrors

If this function returns -1 to indicate a failure, use ATDV_LASTERR( ) and ATDV_ERRMSGP( ) to retrieve one of the following (most common) errors. For a complete list of error codes and definitions, refer to Appendix C.

ED42_NOFEATURE
  SESSION

Function requires an open feature session

ED42_FWREQFAILURE

Firmware error

ED42_BADDEVICE

Invalid or wrong device handle

ED42_UNKNOWNBOARD

Unknown D/42 board type

ED42_UNSUPPORTED

Function not supported on this board

DXLIB_INVNRB

Internal voice library error


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2000, Dialogic Corporation
All rights reserved
This page generated January, 2002