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_music()
int
ivr_play_music(int call, int music_source)
The
ivr_play_music function plays music to the specified call.
Parameters
int
|
call
|
Specifies
which call to play music to.
CALL_PRIMARY: Play music to the Primary Call
CALL_SECONDARY: Play music to the Secondary Call
|
int
|
music_source
|
Specifies
the music source that the call should listen. It can be one of the following
values.
MS_EXTERNAL: Use an external music source.
MS_ONE - MS_EIGHT: Use source one through eight.
|
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_music(CALL_PRIMARY,MS_TWO) != IVR_SUCCESS) ...handle error; }
|