1.7.3. Retrieving the Status of the D channel
The GCIS_EXID_GETBCHANSTATE extension ID is supported when using Springware boards only. When using DM3 boards, the D channel state can be retrieved using gc_GetLineDevState( ) function.
The GCIS_EXID_GETDCHANSTATE extension ID is used for retrieving the status of the D channel of a specified board at any time.
The following table provides the parameter inputs for the gc_Extension( ) function.
- Note: GCIS_EXID_GETDCHANSTATE applies only to ISDN PRI technology. For ISDN BRI technology, use the GCIS_EXID_GETDLINKSTATE extension ID.
Example
int extGetDChanState (LINEDEV handle) { GC_PARM_DATAP parm_datap; GC_PARM_BLKP parm_blkp = NULL, ret_blkp = NULL; unsigned long mode; int ret_val = 0; GC_INFO t_Info; mode = EV_SYNC; ret_val = gc_Extension(GCTGT_GCLIB_CHAN, handle, GCIS_EXID_GETDCHANSTATE, parm_blkp, &ret_blkp, mode); if ( ret_val ) { ret_val = gc_ErrorInfo(&t_Info); if (ret_val == GC_SUCCESS) { printf("gc_ErrorInfo() successfully called\n"); PrintGC_INFO(&t_Info); } else { printf("gc_ErrorInfo() call failed\n"); } } gc_util_delete_parm_blk( ret_blkp ); gc_util_delete_parm_blk( parm_blkp ); return ret_val; }
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation