Справочник Пользователя для Dialogic 05-0867-005
cc_SetDChanCfg( )
sets the configuration of the Digital Subscriber Loop
226
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;
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(&boarddev, “briS1”, 0) != 0)
{
.
.
if (cc_Open(&boarddev, “briS1”, 0) != 0)
{
printf(“cc_open: error\n”);
}
if (cc_SetDChanCfg(boarddev, &dchan_cfg) == 0)
{
{
printf(“Configuration is set\n”);
}
else
else
printf(“Configuration could not be set\n”);
/*
* Wait for Link Activation confirmation
* After which call processing can be started.
*/
* After which call processing can be started.
*/
.
.
.
}
.
.
}
!
!
!
!
Errors
If the function returns a value < 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.
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_SetDChanCfg( ) function include the following: