Previous PageTable Of Contents../index.htmlIndexNext Page

dx_mreciottdata( )

Description | Cautions | Example | Errors | See Also

Name:

dx_mreciottdata (devd, iotp, tptp, xpb, mode, sc_tsinfop)

Inputs:

int devd

  Dialogic channel descriptor

 

DX_IOTT *iotp

  Pointer to I/O transfer table

 

DV_TPT *tptp

  Pointer to termination control block

 

DX_XPB *xpb

  Pointer to I/O transfer parameter block

 

USHORT *mode

  Switch to set audible tone, or DTMF termination

 

*sc_tsinfop

  Pointer to time slot information structure

Returns:

0 success

 

-1 error return code

Includes:

srllib.h

 

dxxxlib.h

Category:

I/O

Mode:

synchronous

Top Of PageDescription

The dx_mreciottdata( ) function records voice data from two SCbus time slots. The data may be recorded to a combination of data files, memory or custom devices.

The Transaction Record feature allows you to record two SCbus time slots from a single channel. Voice activity on two channels can be summed and stored in a single file, device, and/or memory.

This function has the following parameters:

Parameter

Description

devd

Specifies the valid Dialogic voice channel descriptor on which the recording is to occur. The channel descriptor may be that associated with either of the two SCbus transmit time slots or a third device also connected to the SCbus.

iotp

Pointer to the I/O Transfer Table Structure, DX_IOTT. Specifies the order of the voice data and the media on which it will be recorded.

tptp

Points to the Termination Parameter Table Structure, DV_TPT, which specifies the termination conditions for recording. See the chapter on Data Structures for more information.

xpb

Points to a DX_XPB structure and specifies parameter values for I/O data transfer. See the chapter on Data Structures for more information.

mode

Specifies the attributes of the recording mode. One or more of the following values can be specified:

 

0

standard play mode

 

RM_TONE

Transmits a 200ms tone before initiating record. If this mode is not selected, no tone is transmitted (default).

sc_tsinfop

Points to an SC_TSINFO structure and specifies the SCbus transmit time slot values of the two time slots being recorded.

NOTE:
When using RM_TONE bit for tone-initiated record, each time slot must be "listening" to the transmit time slot of the recording channel; the alert tone can only be transmitted on the recording channel's transmit time slot.

The structure for SC_TSINFO is as follows:

where sc_numts should be set to 2 for channel recording and sc_tsarrayp should point to an array of two long integers, specifying the two SCbus transmit time slots from which to record.

After dx_mreciottdata( ) is called, recording continues until one of the following occurs:

Top Of PageCautions

Top Of PageExample

Top Of PageErrors

If this function returns -1 to indicate failure, use ATDV_LASTERR and ATDV_ERRMSGP to retrieve one of the following error reasons:

EDX_BADDEV

Invalid device handle

EDX_BADIOTT

Invalid DX_IOTT entry

EDX_BADPARM

Invalid parameter passed

EDX_BADTPT

Invalid DV_TPT entry

EDX_BUSY

Busy executing I/O function

EDX_SYSTEM

Error from operating system; use dx_fileerrno( ) to obtain error value

Top Of PageSee Also


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