Previous PageTable Of Contents../index.htmlIndexNext Page

cc_SetParmEx( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_SetParmEx(linedev, parm_id, *parminfoptr)

Inputs:

LINEDEV linedev

  line device handle

 

int parm_id

  parameter identifier

 

PARM_INFO *parminfoptr

  pointer to the PARM_INFO block

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_SetParmEx( ) function is an extension of the cc_SetParm( ) function that allows the application to set parameters requiring variable data to be passed down to the firmware, without reconfiguration. These parameters include the Service Protocol Identifier (SPID) number, the directory number, and the subaddress of a User-side line. The SPID must first be specified using the cc_SetDChanCfg( ) function and then can be changed using the cc_SetParmEx( ) function. The directory number and subaddress, which are used to restrict incoming calls to those whose parameters match the specified values, can be set and/or changed at any time using the cc_SetParmEx( ) function.

Parameter

Description

linedev:

The line device handle.

parm_id:

The parameter identification. This function supports all of the parameters listed in Table 26 in the cc_SetParm( ) function description. In addition, for BRI/SC only, the following parameters are also supported:

  SPID_NUMBER - Service Protocol Identifier Number (applicable to BRI North American Protocols only)

  SUBADDR_NUMBER - Subaddress Number (applicable to BRI User Side switches only)

  DIRECTORY_NUMBER - Directory Number (applicable to BRI User Side switches only)

The values for parm_id are defined in cclib.h.

parminfoptr:

A pointer to the PARM_INFO structure, which contains variable data to set in the firmware on a call-by-call basis. For a description of the PARM_INFO data structure, see 6.10. PARM_INFO.

Top Of PageCautions

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_SetParmEx( ) 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