Previous PageTable Of Contents../index.htmlIndexNext Page


13.3. Asynchronous Demo Programs pansr and cbansr

pansrcbansr

The Voice Library asynchronous demo programs (cbansr.c and pansr.c) can be found in the /usr/dialogic/demos/ansr directory included with the voice software for Linux. These asynchronous demo programs work with all Dialogic SCbus-based products (including digital network interface boards). These demos incorporate examples of SCbus time slot routing.

The inbound asynchronous callback answer (cbansr) and inbound asynchronous polled mode answer demo (pansr ) demos simulate an answering machine. They support all voice cards in SCbus and standalone mode, and digital T-1 robbed-bit or E-1.

The following is an example of a hardware setup for use with either asynchronous demo program:

Connect the phone to Line 1A of COS and connect Line 2 of the COS to the desired channel on the back of the board.

All of the command line arguments to this demos can be found by typing:

cbansr -?

or

pansr -?

Here are some switches for use with the cbansr and pansr demos:

-d d4xnum Number of the first D/4x board to use

-t dtinum Number of the first DTI board to use

-n N Number of D/4x channels to use, max: 12

-f frontend Analog, T1 or E1

To run the selected configuration:

  1. Go to /usr/dialogic/demos/ansr and type the following arguments at the command line:

    ./cbansr --d1 --n4 -fAnalog
    or
    ./pansr --d1 --n4 -fAnalog

  1. The demos display a screen with the status of the channels and calls.
  2. After the application is running, dial 5 to ring the configured channel.
  3. After the voice prompt, leave a message and hang up.
  4. Now Dial 5 again and enter the 4-digit extension number during voice prompt.
  5. Listen for your message, ensuring it was recorded correctly and completely.
  6. Following a successful demo run, recompile and rerun, taking note of any errors or warnings.
  7. NOTE:
    If a demo is not terminated, the driver for the demos does not unload after quitting the program, necessitating a reboot before another demo can be loaded.
  8. Terminate the cbansr and pansr programs terminated by executing a "Ctrl C."

Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated November, 2001