(Page 2 of 12 in this chapter)


11.1 Introduction

NMS provides the following demonstration programs with AG Access:

Program

Description

aditest

Interactive test program featuring most AG Access functions.

playrec

Demonstrates playing and recording voice, uses adiPlayAsync, adiRecordAsync

inadi

Demonstrates inbound call control functions.

outadi

Demonstrates outbound call control functions.

brdinfo

Retrieves and displays AG board configurations, uses adiGetBoardInfo, adiGetBoardSlots

adistate

Demonstrates voice record, voice playback, and digit collection functions. The program controls multiple ports within a single process exemplifying a state-machine application.

playwave

Plays a WAVE (i.e., .wav) sound file.

xferpbx

Demonstrates transfer of a call to another extension on a PBX, Centrex, or Centrex-like switch.

threads

A simple, multi-threaded answering machine demonstration.


 

AG Access is shipped with source code for all demonstration programs. Each demonstration is shipped as an executable program with the source code and makefiles. When running the demonstration programs, it is assumed that:

Refer to the appropriate installation manual for information on installation and configuration.

11.1.1 demolib.c

All of the demonstration programs use a common set of high-level functions contained in demolib.c and demolib.h. This demonstration code provides functions for initializing AG Access, opening and closing ports, waiting for calls, placing calls, answering calls, performing record and playback operations, and collecting digits. You can use these functions as base code for developing your applications with AG Access. Note that this library of functions is for demonstration only, and is subject to change without notice.



(Page 2 of 12 in this chapter)


tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights reserved.