Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetParmEx( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetParmEx(linedev, parm_id, valuep)

Inputs:

LINEDEV linedev

  line device handle

 

int parm_id

  parameter identifier

 

PARM_INFO *valuep

  pointer to buffer containing the variable data

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System tools

Mode:

synchronous

Technology:

BRI/2; BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_GetParmEx( ) function is an extension of the cc_GetParm( ) function that allows the application to retrieve parameters containing variable data passed from the firmware.

Parameter

Description

linedev:

The line device handle.

parm_id:

The specified parameter ID. The cc_GetParmEx( ) function can be used to retrieve all the parameters listed in Table 21 in the cc_GetParm( ) function description. In addition, for BRI/SC only, the cc_GetParmEx( ) function can be used to retrieve the parameter values listed in Table 22.

valuep:

The address of the buffer in which the requested information will be stored. The PARM_INFO data structure contains he retrieved information. See Section 6.10. PARM_INFO for a description of the data structure.

The following table lists the cc_GetParmEx( ) function parameter ID definitions.


Table 22. cc_GetParmEx( ) Parameter ID Definitions

Define

Description

Return values

DIRECTORY_NUMBER

Directory Number

String of length parmdatalen

SPID_NUMBER

Service Provider Identifier

String of length parmdatalen

SUBADDR_NUMBER

Subaddress Number

String of length parmdatalen

Top Of PageCautions

None

Top Of PageExample

Top Of PageErrors

If the function returns < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

Error codes from the cc_GetParmEx( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

ERR_ISDN_LIB | E_ISBADTS

Bad time slot

ERR_ISDN_LIB | E_ISBADPAR

Bad input parameter

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 December, 2001