Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Introduction

This article provides instructions on how to capture two logs, ctdaemon and oammon,  commonly requested when troubleshooting Dialogic® Natural Access (NA) issues. 

...

Oammon logging is performed by the oammon process and is responsible for capturing messages sent from the board to the network and messages received from the network.

Ctdaemon logging

Ctdaemon logging can configured in one of two ways, either by modifying the cta.cfg file or by using the utility setctatrace. This setctatrace utility is delivered in Natural Access releases starting with R8 but is compatible with previous releases. setctatraceallows the TraceMask to be configured dynamically without having to restart ctdaemon.

...

CTA_INIT_PARMS initparms = { 0 };

initparms.size = sizeof(CTA_INIT_PARMS);
initparms.parmflags = CTA_PARM_MGMT_SHARED;
initparms.traceflags = CTA_TRACE_ENABLE;
initparms.filename = NULL;
initparms.ctacompatlevel = CTA_COMPATLEVEL;
ctaInitialize (*serviceNames, numServiceNames, &initparms) ;


Controlling TraceMask using cta.cfg file

If you control the TraceMask setting by modifying the cta.cfg file, you will need to restart ctdaemon in order to make the new TraceMask effective.

Controlling TraceMask using setctatrace

The syntax for setctatrace is:     setctatrace -m mask 

...

Also, setctatrace is dynamic and will not update the cta.cfg file. Therefore if you restart ctdaemon, the TraceMask value will revert to the value as defined in the cta.cfg file.

Oammon logging

Typically, oammon logs are requested in order to troubleshoot protocol problems such as ISDN, CAS (WNK, OPS, etc). The oammon log will capture messages between the TCP (Trunk control program) in the board runtime and the network. There is a separate TCP for each protocol that is supported on the board. Oammon logging is controlled using the program agtrace. Agtrace allows you to send a tracemask to the oammon process.  Typically, support will ask that one of two tracemasks be used, one for ISDN tracing and one for tracing CAS protocols.  Following are the steps required for activating the oammon tracing.

...