18 Voice API for Linux Demo Guide — June 2005
Running the Demos
5. Press Ctrl-C to terminate the demo.
Note: If you do not terminate the demo using Ctrl-C, the driver for the demo does not unload after
quitting the program, necessitating a reboot before another demo can be loaded.
4.3.4 Using the dpddemo
The following procedure describes the activity after starting the dpddemo:
1. After the demo starts, a screen is displayed with the status of the channels and calls.
2. Dial an extension number configured for one of the voice channels.
3. After the voice prompt, leave a brief message and hang up the telephone. This message is
recorded in messagen.vox file, where n represents the channel number.
4. Redial the same extension.
5. During the voice prompt, enter the 4-digit access code using the telephone keypad. This access
code takes the form n234, where n is the last digit of the voice channel number.
6. The system plays the previously recorded message.
7. Hang up the telephone.
8. Press Ctrl-C to terminate the demo.
Note: If you do not terminate the demo using Ctrl-C, the driver for the demo does not unload after
quitting the program, necessitating a reboot before another demo can be loaded.
4.3.5 Using the d40demo
The d40demo program creates a background process for each channel that was specified as an
argument. The main process terminates and you are left with one background process per channel.
Each background process waits to receive a call on its channel. When a call is received, the phone
is taken off-hook after one ring, and an introduction message is played. The caller is presented with
a menu of four choices:
place an order by pressing 1
check an order by pressing 2
cancel an order by pressing 3
end the call by pressing *
The caller is prompted for a response. An invalid response prompts the caller to try again. A valid
response prompts the caller to complete the action he chose.