Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetCallInfo( )

Description | Cautions | Example | Errors | See Also

Name:

cc_GetCallInfo(crn, info_id, valuep)

Inputs:

CRN crn

  call reference number

 

int info_id

  call information identifier

 

char *valuep

  pointer to information buffer

Returns:

0 on success
< 0 on failure

Includes:

cclib.h
isdnlib.h

Category:

Optional call handling

Mode:

synchronous

Technology:

BRI/2; BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_GetCallInfo( ) function gets the information elements associated with the CRN of an incoming message. The cc_GetCallInfo( ) function must be used immediately after the message is received if the application requires the call information. The library will not queue the call information; subsequent messages on the same line device will be discarded if the previous messages are not retrieved.

NOTE:
For new applications, use the cc_GetSigInfo( ) function instead of cc_GetCallInfo( ). The cc_GetSigInfo( ) function allows buffers to be set up, which enables the application to store and retrieve multiple messages.

Parameter

Description

crn:

The call reference number. Each call needs a CRN.

info_id:

The call information identifier (see Table 19 below).

valuep:

Points to the buffer where the call information will be stored.

The following table provides definitions of possible info_id parameters.


Table 19. cc_GetCallInfo( ) Info_ID Definitions

info_id

Definition

U_IES

Information Elements (IEs) in CCITT format. The cc_GetCallInfo( ) function retrieves all unprocessed IEs in CCITT format. Be sure to allocate enough memory (up to 256 bytes) to hold the retrieved IEs. The IEs are returned as raw data and must be parsed and interpreted by the application.

Use IE_BLK to retrieve the unprocessed IEs. For a description of the IE_BLK data structure, see Section 6.6. IE_BLK.

See Appendix C for descriptions of information elements specific to the DPNSS protocol.

UUI

User-to-user information. The user information data returned is application-dependent. The user information is retrieved using the USRINFO_ELEM data structure. For a description of the return format for UUI, see Section 6.16. USRINFO_ELEM.

Top Of PageCautions

Top Of PageExample

Top Of PageErrors

If the function returns < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

Error codes from the cc_GetCallInfo( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADCRN

Bad call reference number

ERR_ISDN_LIB | E_ISBADPAR

Bad input parameter

ERR_ISDN_LIB | E_ISNOINFOBUF

Information buffer not ready

ERR_ISDN_LIB | E_ISNOFACILITYBUF

Network Facility buffer not ready

Top Of PageSee Also

None


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

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