Retrieves a voice segment.
Blueworx Voice Response library (libvae.a)
Custom Server library (libca.a)
#include "CA_header.h" #include "CA_access_db.h" int CA_Get_Segment ( SEGMENT_PARM_ST *segment_parm_sp, unsigned long start_element, unsigned long element_count, unsigned char *voice_data );
This subroutine retrieves a voice segment from the Blueworx Voice Response database based on the information provided in the SEGMENT_PARM_ST input structure. The calling routine should first call the CA_Get_Segment_Info() routine to get the complete message information and 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.
CA_ACCESS_NOBUFS
CA_CHECK_LANG_FAILED
CA_END_OF_DATA_REACHED
CA_INV_ADDR
CA_INV_COMPRESSION_TYPE
CA_INV_ELEMENT_COUNT
CA_INV_REQUEST
CA_INV_SEGMENT_ID
CA_INV_START_ELEMENT
CA_LANG_NOT_FOUND
CA_LANG_NOT_IN_USE
CA_NO_MSG_RECV
CA_NOT_INIT
CA_REQ_FAILED
CA_OM_REQ_FAILED
CA_SEGMENT_NOT_FOUND
CA_TERMINATING