CustomServerSample

The application called CustomServerSample contains two sample custom servers. Before you can use CustomServerSample you must:

  1. Import the CustomServerSample.imp file. The import file is located in the /usr/lpp/dirTalk/sw/samples directory.
  2. Build the custom servers and install them (see the Blueworx Voice Response for AIX: Custom Servers information).
  3. Create an application profile for the SrvrSamp_Main state table with Start as the entry point (see Creating an application profile).

The CustomServerSample application comprises six state tables and two custom servers that perform the following activities:

  1. The state table SrvrSamp_Main greets a caller, then prompts the caller for the function to be performed. The caller can add scheduled wakeup calls, list scheduled wakeup calls, update scheduled wakeup calls, and delete scheduled wakeup calls.
  2. From the caller's input, the SrvrSamp_Main state table then invokes the SrvrSamp_Write, SrvrSamp_Read, SrvrSamp_Update, or SrvrSamp_Delete state table to perform the appropriate function. The caller is prompted to input the phone number to make the wakeup call, the time to call (in 24 hour format), and an indication of whether this is a one-time call or a daily call. The CS_Request_Call custom server is used to manipulate the corresponding database, based on the user inputs.
  3. Whenever the database is modified, the CS_Wakeup_Call custom server checks it to determine the time of the next call. When it is time to make the wakeup call, CS_Wakeup_Call opens a channel process link and requests that the SrvrSamp_Wakeup state table be executed, which will make the actual wakeup call. The SrvrSamp_Wakeup state table will play a wakeup greeting, then prompt the called party whether or not to use the snooze feature to call again in 10 minutes.