- aditest is a program that executes many of the AG Access functions from a simple command menu. It is most useful when used with a telephone so that you can play, record, hear tones, etc. Several methods for connecting a phone are suggested in the following paragraphs. Choose one that is appropriate for the AG hardware in your system.
- After you have connected a test line or test phone (see below), enter the following command to start aditest:
aditest -b <board> -s <stream>:<slot>
- Where <board>, <stream> and <slot> are replaced by values that are valid for your installation as displayed by brdinfo.
- You should see a display like the following:
ADI Demonstration and Test Program V.94 (Nov 7 1996) ADI Version is 1.20
H help Q quit VD view default prm ! repeat command
OP open port CP close port X show port state OS open supv port
CE cont event fetch GE get 1 event SE stop event fetch LE loopback event
SP start protocol UP stop protocol AC answer call PC place call
RC release call BC block calls UC unblock calls C? call status
JC reject call AS Assert Signal
PF play file PM play memory P? play status PS play stop
RF record file RM record memory R? record status RS record stop
MG modify play gain MS modify playspeed EI encoding info
DG digit get DF digit flush CD collect digits SC collect stop
DP digit peek FS FSK Send FR FSK Receive FA FSK Abort rcv
GN gen net tone GT gen user tone GD gen DTMFs GS generation stop
TP toggle pattern GW generate wink ST start timer AT abort timer
EB enable bit det DB disabl bit det SQ signal bit query
EE enable energydet DE disabl energydet ED enable DTMF det DD disabl DTMF det
ET enable tone det DT disabl tone det EM enable MF det DM disabl MF det
SD start dial AD abort dial CB callprog begin CS callprog stop
- All commands are entered as one or two letters.
Local phone connected to an AG-8 DID
- If you have an AG-8 with a DID line interface, you can connect a 2500-type telephone to the line interface. You get a direct audio connection, and can also use the telephone hook switch to simulate signaling from the network.
- Connect a telephone and a 24VDC power supply to an AG-8.
- Start aditest. Use the -s option if you are not using the first telephone line on the board.
The initial aditest menu appears.
- Open the port by entering
op.The following message appears:
Event: ADIEVN_OPENPORT_DONE, Finished
- Start the NOCC protocol by entering
sp.
The following message appears:
Enter protocol name ['nocc']:
- Press Enter.
The following message appears:
Event: ADIEVN_STARTPROTOCOL_DONE, Finished
- Begin recording to memory by entering
rm.
You should hear a beep on the handset.
- Say "Hello World" and wait.
The following message appears on the screen (you may see a different number of bytes):
Event: ADIEVN_RECORD_DONE, Voice End, nbytes=15624.
- Play back your voice by entering
pm.
The following message appears:
Event: ADIEVN_PLAY_DONE, Finished, nbytes=15624.
- Quit the test program by entering
q.
Loop start telephone line connected to an AG-8 Loop Start or ATI-24 (with AG-24)
- With this setup you will need a loop start line as a test line connected to your system, so you can call the test line from a telephone connected to another line. Follow the procedure below:
- Make sure that your ag.cfg file has the following statement either in the common section or in the context of the board that you will be using:
TCP = lps0.tcp
If necessary, edit the ag.cfg file and re-start agmon.
- Start aditest.
The initial aditest menu appears.
- Open the port by entering op.
The following message appears:
Event: ADIEVN_OPENPORT_DONE, Finished
- Start a protocol by entering sp.
The following message appears:
Enter protocol name ['nocc']:
- Enter the loop start protocol,
lps0.
The following message appears:
Event: ADIEVN_STARTPROTOCOL_DONE, Finished
- Place a call to the line connected to the AG board.
The following message appears:
Event: ADIEVN_INCOMING_CALL
- Initiate answering the call by entering
ac.
The following message appears:
Number of rings [1]:
- Press Enter.
You should hear a single ring tone.
The following messages appear:
Event: ADIEVN_ANSWERING_CALL
Event: ADIEVN_CALL_CONNECTED, Answered
- Begin recording to memory by entering
rm.
You should hear a beep on the handset.
- Say "Hello World" and wait.
The following message appears on the screen (you may see a different number of bytes):
Event: ADIEVN_RECORD_DONE, Voice End, nbytes=15624.
- Play back your voice by entering
pm.
The following message appears:
Event: ADIEVN_PLAY_DONE, Finished, nbytes=15624.
- Quit the test program by entering
q.
Wink start telephone line connected to an AG-T1 or to a DTI-48 with AG-24 or AG-48
- With this setup you will need a T1 connection, and a way to place a call to one of the channels of the T1.
- Make sure that your ag.cfg file has one of the following statements either in the common section or in the context of the board that you will be using:
TCP = did0.tcp
- or
TCP = wnk0.tcp
If necessary, edit the ag.cfg file and re-start agmon.
- Start aditest (see above).
- Open the port by entering
op.
The following message appears:
Event: ADIEVN_OPENPORT_DONE, Finished
- Start a protocol by entering sp.
The following message appears:
Enter protocol name ['nocc']:
- Enter the appropriate protocol, wnk0 or did0.
The following message appears:
Event: ADIEVN_STARTPROTOCOL_DONE, Finished
- Place a call to the line connected to the AG board.
The following message appears:
Event: ADIEVN_INCOMING_CALL
- Initiate answering the call by entering ac.
The following message appears:
Number of rings [1]:
- Press Enter.
You should hear a single ring tone.
The following messages appear:
Event: ADIEVN_ANSWERING_CALL
Event: ADIEVN_CALL_CONNECTED, Answered
- Begin recording to memory by entering
rm.
You should hear a beep on the handset.
- Say "Hello World" and wait.
The following message appears on the screen (you may see a different number of bytes):
Event: ADIEVN_RECORD_DONE, Voice End, nbytes=15624.
- Play back your voice by entering
pm.
The following message appears:
Event: ADIEVN_PLAY_DONE, Finished, nbytes=15624.
- Quit the test program by entering
q.