ami_TraceHandler

Type

Declaration

typedef void (*ami_TraceHandler)(
   ami_Session    inAmiSession, 
   ami_TraceCode  inTraceCode,
   int            inTraceID,
   const char *   inpText,
   void *         inpUserData );

Purpose

This is the prototype for the optional AMI trace handler callback. This callback is used by AMI API to report events to the application. These events are classified by ami_TraceCode. If no trace handler is provided then tracing is disabled. Tracing can be controlled (including turned off) using the trace control functions.

Parameters

 

Parameter

Description

inAmiSession

AMI session handle reporting the trace event.

inTraceCode

Category of trace event.

inTraceID

Unique ID of trace event.

inpText

Textual description of trace event

inpUserData

User data associated with the AMI session.