Previous PageTable Of Contents../index.htmlIndexNext Page

cc_StartTrace( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_StartTrace(boarddev, FileName)

Inputs:

LINEDEV boarddev

  board device handle controlling the D channel

 

char *FileName

  file name for the trace

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System tools

Mode:

synchronous

Technology:

BRI/2; BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_StartTrace( ) function instructs the firmware to start the capture of all D channel information into a specified log file. The firmware traces the D channel communications between the Dialogic board and the network, places the results in the shared RAM, and opens a file under the FileName parameter. The results are then placed in the specified file, which is stored on the Dialogic board.

The cc_StartTrace( ) function allows the application to trace ISDN messages on the specified D channel. The saved trace file is interpreted off line by the isdtrace utility program supplied with the release package. (For more on the isdtrace utility program, see Section 8.5.2. ISDTRACE Utility.) The trace continues until cc_StopTrace( ) is issued. Complete information on the trace is not available until the cc_StopTrace( ) function is executed.

Parameter

Description

boarddev:

The board device handle of the ISDN span that contains the D channel.

FileName:

The file name for the trace.

Top Of PageCautions

Top Of PageExample

Top Of PageErrors

If the function returns < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

Error codes from the cc_StartTrace( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISTNACT

Trace information is not/is already activated

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated December, 2001