Previous PageTable Of Contents../index.htmlIndexNext Page

dx_recf( )

Description | Example | Errors | See Also

Name:

int dx_recf(chdev,fnamep,tptp,mode)

Inputs:

int chdev

  valid Dialogic channel device handle

 

char *fnamep

  pointer to file to record to

 

DV_TPT *tptp

  pointer to Termination Parameter Table Structure

 

unsigned short mode

  recording mode bit mask for this record session

Returns:

0 if success

 

-1 if failure

Includes:

srllib.h

 

dxxxlib.h

Category:

Convenience

Mode:

synchronous

Top Of PageDescription

The dx_recf( ) function permits voice data to be recorded from a channel to a single file. dx_recf( ) performs the same as synchronous dx_rec( ) does with a DX_IOTT structure that specified a single file. dx_recf( ) is provided as a convenient method for recording to one file without having to specify a DX_IOTT structure. dx_recf( ) opens and closes the file pointed to by fnamep while dx_rec( ) uses a DX_IOTT structure that requires the application to open the file.

Parameter

Description

fnamep

points to the file from to which voice data will be recorded.

For information about other function arguments and other function information, see dx_rec( ).

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_BADPARM

Invalid Parameter

EDX_BADIOTT

Invalid DX_IOTT entry

EDX_BADTPT

Invalid DX_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

Related Functions:

Setting and Handling Record Termination:


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