# Summary of the demonstration programs

Each demonstration program is shipped as an executable program with its source files and make files.

Note: The incta and outcta programs demonstrate placing inbound and outbound calls. Refer to the Dialogic® NaturalAccess™ Software Developer’s Manual for information about these demonstration programs.

The following demonstration programs are provided with Natural Access and the ADI service:

Program | Demonstrates...
--- | ---
hostp2p | A live voice connection between two ports using play and record functions.
playrec | Playing and recording using asynchronous and callback methods.
threads | A simple, multi-threaded answering machine.

Before you start the demonstration programs, ensure that

- Natural Access is properly installed.

- The board is executing.

- Switching is correctly configured.

Refer to the board installation and developer's manual for details on installing the board.

## ctademo.c and ctademo.h

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