Retrieves a greeting.
Blueworx Voice Response library (libvae.a)
Custom Server library (libca.a)
#include "CA_header.h" #include "CA_access_db.h" int CA_Get_Greeting ( GREETING_PARM_ST *greeting_parm_sp, unsigned long start_element, unsigned long element_count, unsigned char *voice_data );
This subroutine retrieves a greeting from the Blueworx Voice Response database based on the information provided in the GREETING_PARM_ST input structure.
The calling routine should first use the CA_Get_Greeting_Info() subroutine to determine the size of buffer required to hold the complete greeting in the format in which it was recorded. For information on how to calculate the size of buffer required, see GREETING_INFO_ST. Note that an uncompressed greeting occupies approximately 5 times more space than it would do if it was compressed.
The calling routine can then specify the starting voice element and the number of voice elements to retrieve from the database. The calling routine is responsible for passing the appropriate start element number so that the voice data is kept in sequence.
To retrieve the entire greeting with a single call to this subroutine, specify the value 1.
To retrieve the entire greeting with a single call to this subroutine, specify the same as the value of total_elements.
CA_ACCESS_NOBUFS
CA_END_OF_DATA_REACHED
CA_GREETING_NOT_FOUND
CA_INV_ADDR
CA_INV_COMPRESSION_TYPE
CA_INV_PROFILE_ID
CA_INV_ELEMENT_COUNT
CA_INV_REQUEST
CA_INV_START_ELEMENT
CA_NO_MSG_RECV
CA_NOT_INIT
CA_OM_REQ_FAILED
CA_REQ_FAILED
CA_TERMINATING