Natural Access provides a mechanism for tracing function calls and events issued or received by an application. To capture trace messages, the Natural Access Server (ctdaemon) must be running, and the SCCP service must be included in the [ctasys] section of the cta.cfg file, as shown:
#==========================================================================
# Natural Access System Configuration (ctasys)
#
# Valid options are:
# Service = name, dll - tells the daemon about available "services"
# - tells the Natural Access server what "services"
# to export
#
# Note: NCC should always precede ADI when both services are listed.
#==========================================================================
[ctasys]
Service = ncc, adimgr
Service = adi, adimgr
Service = ais, aismgr
Service = dtm, adimgr
Service = sccp, sccpmgr
Service = ppx, ppxmgr
Service = swi, swimgr
Service = vce, vcemgr
Service = oam, oammgr
In addition, the application must enable tracing when Natural Access is initialized:
sccpInitparms.size = sizeof(CTA_INIT_PARMS);
sccpInitparms.traceflags = CTA_TRACE_ENABLE;
sccpInitparms.parmflags = CTA_PARM_MGMT_SHARED;
sccpInitparms.ctacompatlevel = CTA_COMPATLEVEL;
Ret = ctaInitialize(sccpServiceNames, 1, &sccpInitparms);
if (Ret != SUCCESS) {
printf("ERROR code 0x%08x initializing Natural Access.", Ret);
exit( 1 );
}
For more information about tracing, refer to the Natural Access Developer's Reference Manual.