Previous PageTable Of Contents../index.htmlIndexNext Page


Event Management Functions

The Event Management functions retrieve and handle Voice device termination events for the following functions:

Table 16 and Table 17 list the Event Management functions applicable to the Voice devices along with the values that are required by or returned for the functions.


Table 16. Voice Device Inputs for Event Management Functions

Event Management Function

Voice Device
Input

Valid
Value

sr_enbhdlr( )

evt_type

TDX_PLAY

Enable event handler

 

TDX_PLAYTONE

   

TDX_RECORD

   

TDX_GETDIG

   

TDX_DIAL

   

TDX_CALLP

   

TDX_CST

   

TDX_SETHOOK

   

TDX_WINK

   

TDX_ERROR

sr_dishdlr( )
Disable event handler

evt_type

As Above


Table 17. Voice Device Returns from Event Management Functions

Event Management Function

Return
Description

Returned
Value

sr_getevtdev( )
Get Dialogic Device handle

device

Voice device handle

sr_getevttype( )

event type

TDX_PLAY

Get event type

 

TDX_PLAYTONE

   

TDX_RECORD

   

TDX_GETDIG

   

TDX_DIAL

   

TDX_CALLP

   

TDX_CST

   

TDX_SETHOOK

   

TDX_WINK

   

TDX_ERROR

sr_getevtlen( )
Get event data length

event length

sizeof (DX_CST)

sr_getevtdatap( )
Get pointer to event data

event data

pointer to DX_CST structure


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002