matches a CRN to its line device handle cc_CRN2LineDev( )
73
Name: int cc_CRN2LineDev(crn, linedevp)
Inputs: CRN crn • call reference number
LINEDEV *linedevp • pointer to a buffer to store the
line device handle
Returns: 0 on success
< 0 on failure
Includes: cclib.h
Category: System control
Mode: synchronous
Technology: BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_CRN2LineDev( ) function is a utility function that matches a CRN to its
line device handle. The function returns the line device handle associated with the
specified call reference number (CRN).
Parameter Description
crn: The call reference number. Each call needs a CRN.
linedevp: Points to the buffer where the line device handle will be stored.
!
! !
!
Cautions
The call reference number (CRN) exists after CCEV_OFFERED is received by
the application or cc_MakeCall( ) is issued. The CRN is valid until the
cc_ReleaseCall( ) function is issued.
!
! !
!
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()
{LINEDEV devhdl = 0;
CRN crn = 0;
char *devname = "dtiB1T1";