Mike's PBX Cookbook

Call Trace

Using LD 80, two types of call trace are available: Snapshot (TRAC), and Enhanced (ENTC).

The trace commands operate only when the Overlay is active. If LD 80 is aborted (****), the trace functions stop. Note that when using the enhanced trace commands, the Overlay will not automatically abort (according to the defined time-out period) if calls are being traced. When a system initialization (INI) occurs, all trace commands are removed, and the trace operation is stopped.

Snapshot:

The following commands can be used to monitor and trace calls:

TRACcust dnShow trace for DN, or indicate idle. Enter the ACOD of a route as a DN to show the condition, either idle or busy, of every trunk member of the route.
TRACcust r mShow trace for trunk: c=customer, r=route, m=member.
TRACl s c uShow trace of any calls on the TN and if it is a digital set, the status of every key. Append DEV for additional NARS/BARS/CDP data. Example: TRAC l s c u DEV
TRAKc uAs TRAC, but for small systems (CS 1000S, MG 1000B, MG 1000T).
TRADl chShow trace for digital trunk loop and channel. Useful after tracing an ACOD of a digital route, ISDN, DPNSS or similar, to trace any channels marked busy to check their call status.
TRATcust aShow the status of all loops an attendant console, and details of any calls present on them.
TRIP<ip-address>Show trace for the specified IP address
Where: l=loop, s=shelf, c=card, u=unit, cust=customer, and a=attendant number.

Enhanced:

The enhanced trace is in real time. It requires Multi-User Login functionality (package 242) to be enabled in LD 17.

The enhanced commands are: DALL, DIST, ENTC, ENTD, GOTR, FITR, and STPT. These commands interact with each other only.

ENTCl s c u tEnable the enhanced trace for a TN, t=duration. Append DEV for additional NARS/BARS/CDP data.
ENTDl ch tEnable the enhanced trace for a digital trunk loop and channel, t=duration.
GOTRBegin enhanced trace. This command starts the trace operation specified with the ENTC and ENTD commands.
STPTStops the enhanced trace operation specified with the ENTC and ENTD commands. This can be used at any time during the trace operation. This does not disable the commands; they can be restarted with the GOTR command. When they are restarted, the duration timer is reset.
FITRGet information about the enhanced trace operation(s) currently running: queries the traces with the ENTC and ENTD commands. You can store and run 3 traces at once.
DISTnDisable the enhanced trace operation, where: n = entry number, found with the FITR command.
DALLDisable all enhanced trace commands.
Where: l=loop, s=shelf, c=card, u=unit, and t=duration - the length of time the trace runs.

The format for the trace command duration (t) is HHMM, where HH = hours (0-23) and MM = minutes (0-59). For example, for a duration of 5 minutes, t = 0005; for 1 hour, t = 0100. The time duration must be at least 1 minute, and no more than 23 hours.

Malicious call trace:

To invoke a call trace directly from a set, add a TRC Key, and CLS MCTA on the set. When a call is presented, the user can press the TRC key, and the call trace data will be output on the Maintenance terminal. For this to work, check that Malicious Call DN/CLID printing is allowed: MCDC = YES, in LD 15, FTR_DATA.

Example:

>ld 80
.entc 64 0 14 14 0100 
.gotr

... will continue to trace the specified TN for 1 hr, or until stpt is entered, or until you exit the overlay.

>ld 80

TRA000
.entc 64 0 14 14 0100

.gotr

.14:42:02     08/06/2011
 TN 064 0 14 14
KEY 0  SCR      ACTIVE  TN 004 0 12 00

ORIG   TN 064 0 14 14  KEY 0  SCR       CUST 0  DN 3891  TYPE 2616
TERM  NONE
TDTN    0     SLOT    16   PTY SLOT  16
DIAL DN NONE
MAIN_PM  READY
TALKSLOT  NONE
EES_DATA:
NONE
QUEU  DIAL
CALL ID 0 239


KEY 1  SCR       IDLE
KEY 2  SCR       IDLE
KEY 3  SCR       IDLE
KEY 4  TRN  IDLE
KEY 5  CFW  IDLE
KEY 6  MWK  IDLE
KEY 7  NUL  IDLE
KEY 8  NUL  IDLE
KEY 9  NUL  IDLE
KEY 10 NUL  IDLE
KEY 11 NUL  IDLE
KEY 12 NUL  IDLE
KEY 13 NUL  IDLE
KEY 14 AO6  IDLE
KEY 15 NUL  IDLE