PREV TOC HOME INDEX NEXT


1.7.2. Retrieve the Status of the B channel

The GCIS_EXID_GETBCHANSTATE extension ID is used for retrieving the status (in service, in maintenance, or out of service) of the B channel at any time.

The following table provides the parameter inputs for the gc_Extension( ) function.

Parameter Input
target_type GCTGT_GCLIB_CHAN
target_id line device handle (linedev) of the B channel board
ext_id GCIS_EXID_GETBCHANSTATE
retblkp set_id - GCIS_SET_CHANSTATE

parm_id - GCIS_PARM_BCHANSTATE

values -
  • ISDN_IN_SERVICE
  • ISDN_MAINTENANCE
  • ISDN_OUT_OF_SERVICE

value_type - int
mode EV_SYNC

Note: This feature is not supported for the BRI/2 board.
Example
 int extGetBChanState (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_GETBCHANSTATE, 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;
}

PREV TOC HOME INDEX NEXT

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated October, 2001