Dialogic 05-0867-005 Table Top Game User Manual


 
sets the configuration of the Digital Subscriber Loop cc_SetDChanCfg( )
225
Parameter Description
boarddev:
The line device handle of the D channel board.
dchan_cfgptr:
The pointer to the D channel configuration (DCHAN_CFG)
block. See Section 6.3. DCHAN_CFG for a description of
the DCHAN_CFG data structure and for possible field
values.
!
! !
!
Cautions
The cc_SetDChanCfg( ) function must be issued prior to any call control
commands.
All components of the DCHAN_CFG structure that pertain to the
configuration must be set. There are no default values.
Issuing a subsequent cc_SetDChanCfg( ) command reinitializes all layers of
the protocol stack. As a result, all existing calls for that particular D channel
are lost. The application receives CCEV_DISCONNECTED events for any
calls that existed when the cc_SetDChanCfg( ) function was called. The
application should follow normal call teardown procedures after receiving the
CCEV_DISCONNECTED event.
!
! !
!
Example
#include <windows.h> /* for Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
#include isdncmd.h
#include isdnlib.h
/* Global variables */
LINEDEV boarddev;
DCHAN_CFG dchan_cfg;
main ()
{
dchan_cfg.layer2_access = FULL_ISDN_STACK; /* full protocol */
dchan_cfg.switch_type = ISDN_BRI_NTT; /* NTT switch */
dchan_cfg.switch_side = USER_SIDE; /* User Terminal */
dchan_cfg.number_of_endpoints = 1; /* one terminal */
dchan_cfg.user.tei_assignment = FIXED_TEI_TERMINAL; /* Fixed TEI terminal */
dchan_cfg.user.fixed_tei_value = 23; /* TEI assigned to terminal */
dchan_cfg.tmr.te.T303 = TMR_DEFAULT; /* NOTE: the values chosen are arbitrary. */
dchan_cfg.tmr.te.T304 = TMR_DEFAULT;