Previous PageTable Of Contents../index.htmlIndexNext Page

cl_GetVariable( )

Description | Termination Events | Cautions | Example | Errors | See Also

Name:

int cl_GetVariable(hDevice, pclEventData, pszVariableName, pszVariable, iVariableSize)

Inputs:

long hDevice

  call logging device handle

 

CL_EVENTDATA* pclEventData

  pointer to call logging event data block

 

const char* pszVariableName

  pointer to ASCIIZ string that specifies name of variable

 

char* pszVariable

  pointer to buffer into which the value of the variable is returned

 

int iVariableSize

  size of buffer into which the value of the variable is returned

Returns:

0 on success
-1 on failure

-2 if call logging transaction already released

Includes:

cllib.h

Mode:

synchronous

Top Of PageDescription

The cl_GetVariable( ) function returns the semantics-defined variable as it would have appeared at the time the CLEV_MESSAGE event was generated. The current list of semantics variables common to all protocols is (case-sensitive) CALLED, CALLING, CHANNEL. Additional protocol-specific variable names can be defined by the semantics.

Parameter

Description

hDevice:

The device handle of the call logging device.

pclEventData:

The pointer to the call logging event data block obtained from sr_getevtdatap( ) while the function was processing a CLEV_MESSAGE event. See Section 1.5.2. Retrieving Event Datafor more information.

pszVariableName:

The pointer to the ASCIIZ string that specifies the name of the semantics-defined variable.

pszVariable:

The pointer to the buffer into which the value of the semantics-defined variable is returned. The value is returned as an ASCIIZ string.

iVariableSize:

The size of the buffer into which the value of the semantics-defined variable is returned, where maximum size includes the terminating NUL of the returned ASCIIZ string.

Top Of PageTermination Events

None

Top Of PageCautions

Top Of PageExample

Top Of PageErrors

If the function returns a value < 0, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive error message. The error codes that can be returned by ATDV_LASTERR( ) are:

Error Code Value

Returned When

ECL_NULLPARAMETER

invalid NULL parameter

ECL_INVALIDCONTEXT

invalid event context

ECL_TRANSACTIONRELEASED

transaction already released

ECL_INVALIDPARAMETER

invalid parameter

ECL_NOMEM

out of memory

ECL_INTERNAL

internal Call Logging error; cause unknown

See 2.2 Error Handling for more information about what kinds of errors can cause these codes to be returned

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 February, 2002