9.8.2 Getting or Setting CCLib Configuration in Synchronous Mode
The Global Call RTCM feature allows the customer application to retrieve or change the default configuration of a CCLib even before any line device is opened. Figure 37 shows the procedure for synchronous mode.
Figure 37. Getting or Setting CCLib Configuration in Synchronous Mode
The following describes the procedure for getting or setting the configuration of a CCLib in synchronous mode.
- Load the call control library after the gc_Start( ) function is called.
- Find the CCLib ID using its name by calling the gc_CCLibNameToID( ) function. If the application has doubt about the CCLib name, it can call the gc_GetCCLibStatusAll( ) function to verify whether the CCLib has been started.
- Create the target object data (a GC_PARM_BLK data structure) with the appropriate set ID, parm ID, value size, and value, if applicable, by calling the Global Call utility functions gc_util_insert_ref( ) or gc_util_insert_val( ). See the Global Call API Library Reference for more information.
- Call the gc_GetConfigData( ) or gc_SetConfigData( ) function with:
target_type = GCTGT_CCLIB_SYSTEM
target_id = CCLib ID
time_out = 0
mode = EV_SYNC- If the gc_GetConfigData( ) function returns successfully, then obtain the individual parameter data by calling the gc_util_get_next_parm( ) function. If an error occurs, call the gc_ErrorInfo( ) function to find the error and correct it.
Click here to contact Telecom Support Resources
Copyright 2002, Intel Corporation