Dialogic 05-0867-005 Table Top Game User Manual


 
retrieves the status of the B channel cc_GetBChanState( )
83
Name:
int cc_GetBChanState(linedev, bchstate_buf)
Inputs:
LINEDEV linedev
line device handle for the B
channel
int *bchstate_buf
pointer to the location where the B
channel state value is stored
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
System tools
Mode:
synchronous
Technology:
BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_GetBChanState( ) function retrieves the status of the B channel at any
time.
Parameter Description
linedev:
The line device handle for the B channel.
bchstate_buf:
Points to the buffer containing the requested B channel state
value. The definitions of the possible channel states are:
ISDN_IN_SERVICE B channel is in service
ISDN_MAINTENANCE B channel is in maintenance
ISDN_OUT_OF_SERVICE B channel is out of service
!
! !
!
Caution
This function is not supported for the BRI/2 board.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
void main()