IVR Software Library
IVR Library Routine Descriptions
The following routine or parameter is maintained in the PACER and WIZARD IVR software library. These routines are developed for programmers who are creating and managing IVR application programs.
IVR programs can be written in C/C++ on Windows, Unix and Linux operating environments.
ivr_start_recording()
int
ivr_start_recording(int call, char *filename, int maxtime, int maxsilencetime,
char termchar)
The
ivr_start_recording function records the specified call.
Parameters
int
|
call
|
Specifies
which call to retrieve digits from. It can be one of the following values.
CALL_PRIMARY: Collect Digits from the Primary Call
CALL_SECONDARY: Collect Digits from the Secondary Call
|
char *
|
filename
|
The full path name of the file to record.
|
int
|
maxtime
|
The maximum time of the recording
|
int
|
maxsilencetime
|
The amount of silence required that terminates the
recording.
|
char
|
termchar
|
A specific character to terminate digit collection.
|
Return Value
Return
IVR_SUCCESS on a successful function call. On error the function returns one
of the IVR Error Codes.
Example
if(ivr_start_recording(CALL_PRIMARY,"D:\\Recording\\Call1.wav",600,5,'*') != IVR_SUCCESS){ ...handle error; }
|