Testing your Diva Media board installation on Linux
Several utilities are available to help check that your Diva Media board has been installed correctly and is working properly.
Before using the utilities, please check the configuration of the card and ensure that the following settings are configured correctly:
- The switch protocol the ISDN line is using – such as EuroISDN or Qsig
- The line type - either Point-to-Point or Point-To-Multipoint
- The layer 2 Connect mode - No Disconnect, Permanent or On Demand
Using telsampl
This utility allows you to make / receive voice calls testing the CAPI 2.0 interface functionality. This utility is located in the /usr/lib/opendiva/divas/ directory.
Make a call to a phone (e.g. phone number 012345678)
- To start the utility enter
./telsampl
Per default telsampl will use the first CAPI controller. If you want it to use a particular controller / line start it with the -c option.
For instance this will start the utility on CAPI controller 5
./telsampl -c5
- Press 'c' to create an outgoing call
- Enter destination address: 012345678
- Upon connect press 'b' - the tool will now playback the audio from the called person.
- Press 2x 'd' to disconnect the call
If the called person hears the feedback, the board is successfully installed and configured.
Receive a call from a phone
- Start the utility as shown above, the utility automatically waits for incoming calls
- Call the Server from a phone
- Upon connect press 'b' - the tool will now playback the audio from the called person.
- Press 2x 'd' to disconnect the call.
If the calling person hears the feedback, the board is successfully installed and configured.
Using ACOPY2
This utility allows you to make/receive data calls testing the CAPI 2.0 interface functionality. The acopy2 utility is located in the /usr/lib/opendiva/divas directory.
Per default acopy2 will use the first CAPI controller. If you want it to use a particular controller / line use the -c option.
Note: To get a complete list of options available to use with acopy2, type:
./acopy2 -
Make an outgoing connection
To call an analog phone or mobile (e.g. phone number 012345678) enter
./acopy2 -s1 -num -n012345678
Note: You must specify '-n' before the number.
If the called phone rings, the board is successfully installed and configured.
Make an incoming connection
1. Start the utility in server mode as follows:
./acopy2 -s1 -serve
2. Call the Server from a phone.
The test is successful if the utility accepts the call and displays the called party number as 'Station'.
Alternatively use the utility to make and receive the call.
This test assumes that you have two machines, each with a Diva Media board installed. You can also run the test on a machine with a single Diva Media board, and switch between two console windows, one where you have typed the command to make an outgoing call and the other where you have typed the command to receive the call.
On the server side, go to /usr/lib/opendiva/divas/ and type in the following command
./acopy2 -serve
On the client side, go to /usr/lib/opendiva/divas and type in the following command
./acopy2 -num -n<ISDNnumber>
where <ISDNnumber> is the number of the ISDN line connected to the server side.
The test is successful if you see a 'NUMBER request' message on the server side, indicating that a call was received.
Using TESTFAX
If you have a problem sending or receiving faxes with a Diva SDK-based, or CAPI 2.0-based, fax application, try testing with the Diva utility testfax to determine if the problem is located within the application or with the Diva Media board itself. The testfax utility is located in the /usr/lib/opendiva/divas directory.
Per default testfax will use the first CAPI controller. If you want it to use a particular controller / line start it with the -c option.
Note: To get a complete list of options available to use with testfax, type:
./testfax
Sending a fax
Create a small test file (e.g. hello.txt) in the directory where testfax is located.
Type in the following command:
./testfax hello.txt 012345678
and replace 012345678 with the number of a fax machine that you have access to.
The fax is sent successfully when testfax returns with this line:
Info=0000, Pages=1, Rate=14400, Station Id= <Station ID of the receiver>
If you encounter any problems try sending the fax using one of the four different analogue services:
[Speech]
./testfax hallo.txt 012345678 -s1
[3.1 kHz audio]
./testfax hallo.txt 012345678 -s4
[Telephony]
./testfax hallo.txt 012345678 -s16
[Fax Group 2/3]
./testfax hallo.txt 012345678 -s17
Receiving a fax
Type the following command to start testfax in server mode:
./testfax /serve
The fax is successfully received when testfax returns with the following lines. The received fax file is saved as rcv00.sff under
/usr/lib/opendiva/divas.
Station <Calling Party Number>: connect
Info=0000, Pages=1, Rate=33600, Station Id=<Calling Station ID>
Using tty_test
This utility allows you to test the Diva Media board and the Diva TTY interface functionality. The tty_test utility is located in the /usr/lib/opendiva/divas directory.
On the server side, go to /usr/lib/opendiva/divas and type in the following command
./tty_test 1 s auto
where '1' is the tty number, 's' means that you have started the utility in server mode and 'auto' means autodetection of B-channel protocol.
On the client side (assuming this is on the same Linux machine), go to /usr/lib/opendiva/divas and type in the following command
./tty_test 2 <ISDNnumber> x75
where '2' is the second tty port, 'x75' is the protocol and <ISDNnumber> is the number on the server side.
The transfer rate will appear in real time and will be updated every time 64 Kbytes of data have been transferred.
To stop the tty_test utility, either stop the server or client side by pressing ‘q’ [Enter].
See also:Configuring Diva Media boards for Linux
First published: 14-Feb-2011
Open access: Product rule: ; Page rule: Auto