08.01.2013 Views

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

gc_QueryConfigData( ) — query the configuration data<br />

Parameter Description<br />

query_id specifies which configuration data is required based on the source data:<br />

GCQUERY_LD_NAME_TO_ID<br />

GCQUERY_BOARD_NAME_TO_STATUS<br />

GCQUERY_PROTOCOL_NAME_TO_ID<br />

GCQUERY_PARM_NAME_TO_ID<br />

response_datap specifies the queried result data:<br />

name - protocol name, board name, and time slot name<br />

identifier - protocol ID, line device ID<br />

GC_PARM_ID data structure<br />

The query_id parameter specifies which configuration data is required and the data type for the<br />

source data (specified in source_datap) as well as the response data (specified in<br />

response_datap). The query_id also determines the target object type (see Table 10). The source<br />

data pointer, source_datap, points to the location of the known data. The response data parameter<br />

is returned by the function. The data type can be a character string, integer, or <strong>Global</strong> <strong>Call</strong><br />

parameter set.<br />

To find the query ID, consult the technology notes, release notes, or appropriate header files (for<br />

example, gccfgparm.h). Table 10 shows the query IDs defined in GCLib and how they are used to<br />

obtain configuration information.<br />

Table 10. Query IDs Defined in GCLib<br />

Query ID<br />

GCQUERY_<br />

LD_NAME_<br />

TO_ID<br />

GCQUERY_<br />

BOARD_<br />

NAME_TO_<br />

STATUS<br />

GCQUERY_<br />

PROTOCOL_<br />

NAME_TO_ID<br />

Source<br />

Data<br />

Type<br />

Response<br />

Data Type<br />

Target Object Type Explanation<br />

string long GCTGT_GCLIB_SYSTEM Find linedev ID by its<br />

name<br />

string int GCTGT_GCLIB_SYSTEM Find network interface<br />

board status by its<br />

name<br />

string long GCTGT_GCLIB_SYSTEM Find protocol ID by its<br />

name. Typically, the<br />

protocol name passed<br />

in the gc_OpenEx( )<br />

function is used.<br />

† Query ID depends on the CCLib implementation.<br />

244 Dialogic ® <strong>Global</strong> <strong>Call</strong> <strong>API</strong> <strong>Library</strong> <strong>Reference</strong> — January 2008<br />

Dialogic Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!