set parameters requiring variable data to be passed cc_SetParmEx( )
251
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.
!
! !
!
Cautions
• In order to use the cc_SetParmEx( ) function to change the SPID, the D
channel must first be configured as an initializing terminal using the
cc_SetDChanCfg( ) function.
• When the link goes down, the last SPID negotiated with the network will be
the only SPID to be renegotiated when the link comes back up. This means
that both B channels will end up with the same renegotiated SPID. Use the
cc_SetParmEx( ) function to reset the SPIDs for the B channels.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include “srllib.h”
#include “dtilib.h”
#include “cclib.h”
void main()