Previous PageTable Of Contents../index.htmlIndexNext Page

d42_getparm( )

Description | Cautions | Example | Errors | See Also

Name:

int d42_getparm(devh, parmnum, parmvalp)

Inputs:

int devh

  board or channel descriptor

 

int parmnum

  parameter name

 

void *parmvalp

  pointer to parameter value

Returns:

0
-1

  if success

Includes:

D42LIB.H

Mode:

synchronous

Top Of PageDescription

The d42_getparm( ) function retrieves the selected channel or board parameter and places it in the application buffer (parmvalp). Depending on the parameter retrieved, the data returned can be either a character string or an integer. The board and channel parameter that can be retrieved are listed in
Table 1
.

Parameter

Description

devh:

specifies the valid board device or channel device descriptor obtained by a call to dx_open( )

parmnum:

contains the parameter name to retrieve

parmvalp:

pointer to the application variable that will receive the parameter value

Top Of PageCautions

When retrieving a parameter, the application passes a pointer to a variable that will contain the actual parameter value. This variable should be treated as an unsigned integer for all parameters. The application should cast the parmvalp parameter to a (void *) to avoid compiler warnings.


Table 1. Board and Channel Parameters for d42_getparm( )

Board Parameters

Description

D4BD_CALLID

Enable Caller ID

Values: 0 - disable (default)

1 - enable

D4BD_GETSWITCHTTYPE

Obtains the switch type

Values:

 

PBX_L4

PBX_L2

PBX_SH

PBX_SR

PBX_NS

PBX_M1

PBX_SX

PBX_SX2

- Lucent 75/85

- Lucent G3

- Siemens Hicom

- Siemens ROLM

- Norstar

- Meridian 1

- MITEL SX-50

- MITEL SX-200ML
or SX-2000

D4BD_REPORT_RESET

Enable report reset

Values: 0 - disable (default)

1 - enable

   

Channel Parameters

Description

D4CH_CHANNELSTATUS

Receive asynchronous channel status messages

Values: 0 - disable (default)

1 - enable

D4CH_LC_LAMP

Lamp to monitor for loop current

D4CH_CHANNELUPDATE

Enable/Disable asynchronous LCD and indicator updates

D4CH_CALLERIDAVAILABLE

Enables notification of Caller ID availability using the T_CALLERIDAVAILABLE event.

Values: 0 - disable (default)

1 - enable

D4CH_CHANNELSTATUS

Enables notification of a change in the status of the channel.

Values: 0 - disable (default)

1 - enable

D4CH_SOFTKEYINPUT*

Enables notification of SoftKey input using the T_SOFTKEYINPUT event.

Values: 0 - disable (default)

1 - enable

D4CH_TERMINATEFEATURE*

Enables notification when a feature session is terminated.

Values: 0 - disable(default)

1 - enable

* When d42_openfeaturesession( ) is called for a channel, the value of this parameter is set automatically to 1 (enable) for that channel. When d42_closefeaturesession( ) is called, the value of this parameter is set automatically to 0 (disable) for that channel.

Top Of PageExample

Top Of PageErrors

If this function returns -1 to indicate a failure, one of the following (most common) codes will be contained in dx_errno. For a complete list of error codes and definitions, refer to Appendix C.

ED42_BADDEVICE

Invalid or wrong device handle

ED42_UNSUPPORTED

Function not supported on this board

ED42_SYSTEM

System level error

ED42_INVALARG

Invalid argument passed to function

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated November, 2001