Retrieves voice message data.
Blueworx Voice Response library (libvae.a)
Custom Server library (libca.a)
#include "CA_header.h" #include "CA_access_db.h" int CA_Get_Voice_Msg ( GET_VOICE_MSG_PARM_ST *get_voice_msg_parm_sp, unsigned long start_element, unsigned long element_count, unsigned char *voice_data );
This subroutine retrieves the voice message data based on the information provided in the GET_VOICE_MSG_PARM_ST input structure. The calling routine should use the CA_Get_Voice_Msg_Info() routine to determine the size of the buffer required to hold the complete voice message. The calling routine can then specify the starting voice element and the number of elements to retrieve from the database. The calling routine is responsible for passing the appropriate start element number so as to keep the voice data in sequence. The element_count is defined by the calling routine based on the space it previously allocated. Once the voice data is retrieved, it is stored in the previously allocated voice_data buffer.
If the message is annotated, Blueworx Voice Response tries to compensate for the different maximum volume levels unless environment variable, CA_OVERRIDE_DB_COMP=1. (For more information, see Changing the AIX environment of a custom server.)
CA_ACCESS_NOBUFS
CA_END_OF_DATA_REACHED
CA_INV_ADDR
CA_INV_COMPRESSION_TYPE
CA_INV_REQUEST
CA_INV_START_ELEMENT
CA_INV_TOTAL_ELEMENTS
CA_NO_MSG_RECV
CA_NOT_INIT
CA_OM_REQ_FAILED
CA_REQ_FAILED
CA_TERMINATING
CA_VOICE_MSG_NOT_FOUND