Dialogic 05-0867-005 Table Top Game User Manual


 
cc_TermRegisterResponse( ) sends a response for CCEV_TERM_REGISTER
280
LINEDEV lbuf;
DCHAN_CFG dchan_cfg;
main ()
{
dchan_cfg.layer2_access = FULL_ISDN_STACK; /* full protocol */
dchan_cfg.switch_type = ISDN_BRI_NI1; /* NI1 switch */
dchan_cfg.switch_side = NETWORK_SIDE; /* Network 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;
dchan_cfg.tmr.te.T305 = TMR_DEFAULT;
dchan_cfg.tmr.te.T308 = TMR_DEFAULT;
dchan_cfg.tmr.te.T310 = TMR_DEFAULT;
dchan_cfg.tmr.te.T313 = TMR_DEFAULT;
dchan_cfg.tmr.te.T318 = TMR_DEFAULT;
dchan_cfg.tmr.te.T319 = TMR_DEFAULT;
if (cc_Open(&lbuf, briS1,0) != SUCCESS)
{
printf(cc_open: error\n);
}
if (cc_SetDChanCfg(lbuf, &dchan_cfg) == SUCCESS)
{
printf(Configuration is set\n);
}
else
printf(Configuration could not be set\n);
.
.
/* Initialize SRL */
.
.
.
/* enable termRegisterHdlr() to handler the CCEV_TERM_REGISTER event */
if ( sr_enbhdlr( devhdl, CCEV_TERM_REGISTER, termRegisterHdlr)<0)
{
printf( "Handler enable for CCEV_TERM_REGISTER event failed: %s\n",
ATDV_ERRMSGP( lbuf ) );
return( 1 );
}
.
.
.
/*
Wait for Link Activation confirmation
After which call processing can be started.
*/
.
.
.
sr_waitevt(-1)
}