Dialogic 05-0867-005 Table Top Game User Manual


 
cc_GetChanId( ) gets the last channel information
96
Name:
cc_GetChanId(crn, chanId)
Inputs:
CRN crn
call reference number
CHAN_ID *chanId
pointer to channel ID structure
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
Optional call handling
Mode:
synchronous
Technology:
BRI/2; BRI/SC
!
! !
!
Description
The cc_GetChanId( ) function gets the last channel information received from
messages for the specified CRN. This function is used after a call-related event is
received for the board device (e.g., dtiB1)
Parameter Description
crn:
The call reference number.
chanId:
Pointer to the Channel ID structure that contains the last channel
preference known for the specified CRN.
!
! !
!
Cautions
The channel ID information associated with a specific CRN may change after an
incoming call is connected or answered.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include “srllib.h”
#include “dtilib.h”
#include “cclib.h”
/** Globals **/
CRN normal_crn = 0; /* crn of a normal call */
CRN waitingcall_crn = 0;
/** Function prototypes **/
long event_handler(unsigned long event_handle);
int callfail (CRN crn);
int procdevfail (LINEDEV handle);