188 Voice API Programming Guide
Syntellect License Automated Attendant
–receives digit input and transfers the call to the proper extension
•the source code and demonstration code for the automated attendant application
16.2 Syntellect License Automated Attendant FunctionsIntel boards that are enabled with the Syntellect Technology Corporation (STC) patent license offer
a new library interface that contains several API functions.
The following functions are described in the Voice API Library Reference:
li_attendant( )
Performs the actions of an automated attendant.
li_islicensed_syntellect()
Returns TRUE/FALSE value on whether the STC license is enabled on the board.
16.3 How to Use the Automated Attendant Function CallThe li_attendant() API perf orms the actions of an automated attendant. This API operates in loop
forever, synchronous mode and is designed to work in your application as a “created” thread.
To use this function in your application:
•You must provide the address of the li_attendant() as the entry point to the system call
_beginthread() . Do not use createthread( ).
•Before the li_attendant() thread can be created, your application must ini tialize a data
structure providing information for the proper operation of the li_attendant() thread. This
data structure, called DX_ATTENDANT, is described in the Voice API Library Reference.
To provide a way to terminate the li_attendant() thread, you must define a “named event” in the
data structure. During the initialization process, the API verifies that the data structure contains
valid entries. It checks for the presence of the named event. If the named event exists,
li_attendant( ) continues and runs the automated attendant. If the named event does not exist, an
error is returned. If the channel is on a non-STC board, li_attendant( ) terminates.
For more information on the synchronous programming model, refer to the Standard Runtime
Library API Programming Guide.