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_play_message()
int
ivr_play_message(int call, char *wavefile, int allow_interrupt)
The
ivr_play_message function plays a message to the specified call.
Parameters
int
|
call
|
Specifies which
call play to:
CALL_PRIMARY: Play to Primary Call
CALL_SECONDARY: Play to Secondary Call
|
char *
|
wavefile
|
Null terminated string containing the pathname of the
message to play.
|
int
|
allow_interrupt
|
Specifies
if a digit can interrupt the prompts. It can be one of the following values.
NO_INTERRUPT: Do not allow prompts to be interrupted by a digit
INTERRUPT: Allow prompts to be interrupted by a digit
|
Return Value
Returns
IVR_SUCCESS on a successful function call. On error the function returns one
of the IVR Error Codes.
Example
if(ivr_play_message(CALL_PRIMARY,"D:\\ivrdemo\\prompt1.wav",INTERRUPT) != IVR_SUCCESS) ...handle error; }
|