Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetSigInfo( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetSigInfo(valuep, info_id, evtdatap)

Inputs:

char *valuep

  pointer to information buffer

 

int info_id

  signal information identifier

 

void *evtdatap

  pointer to an event block

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Optional call handling

Mode:

synchronous

Technology:

BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_GetSigInfo( ) function gets the signaling information of an incoming message. The library uses evtdatap to retrieve the associated signaling information elements (IEs) and puts the information in the queue.

In order to use the cc_GetSigInfo( ) function for a channel, the application needs to specify the size of the queue by calling the cc_SetParm( ) function and setting the RECEIVE_INFO_BUF to the desired size.

Parameter

Description

valuep:

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

info_id:

Specifies the type of signaling information to be retrieved (see Table 23 below).

evtdatap:

Points to the event data block. This pointer may be acquired by using sr_getevtdatap( ), an element of the Dialogic Standard Runtime Library (SRL).

The following table provides definitions of possible info_id parameters.


Table 23. cc_GetSigInfo( ) Info_ID Definitions

Info_ID

Definition

U_IES

Information elements (IEs) in CCITT format. The cc_GetSigInfo( ) function retrieves all unprocessed IEs in CCITT format. Be sure to allocate enough memory (up to 256 bytes) to hold the retrieved information elements. 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.

NOTE:
Information Elements (IEs) that are specific to the DPNSS protocol are described in Appendix C.

UUI

User-to-user information - the data returned is application-dependent and 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 a value < 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_GetSigInfo( ) function include the following:

Error Code

Description

E_ISMISGSI | ERR_ISDN_LIB

The cc_GetSigInfo( ) function is not supported because the application did not use cc_SetParm( ) to allocate the signaling queue.

E_ISLSIEBUF | ERR_ISDN_LIB

The signaling information queue was too small to accommodate the incoming data. The signaling information associated with this event is lost. The application needs to increase the buffer size so that the queue is large enough to hold the information string.

Top Of PageSee Also


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