Dialogic Voice Cards - Getting a recording on Linux - ISDN

Dialogic Voice Cards - Getting a recording on Linux - ISDN

Reason For the Issue

Often times it is necessary to obtain a recording to troubleshoot issues involving CPA, DTMF detection, etc.  For Windows, the utility SCrecord.exe is available.  The application attached in this technote, getrec, will work with Linux, and is easily configurable for a variety of situations.

Fix / Solution

The attached utility, getrec, can be run on a Linux System Release.  It is a simple application which is configured by default to open up 23 ISDN channels on the first JCT board in the system.  Upon receiving an inbound call, the application will capture a recording in PCM format.  The utility is available for download here.

Configuration/Implementation

Source code and makefile are included in the zip.

To change the number of channels opened, run the makefile after changing the following line in main.cpp:
int maxIsdn = 23; // maximum allowed 2016

To change the duration of the recorded file, run the makefile after changing the following line in main.cpp:
evtDev->recordVoice("recording.pcm", 300); // 30 sec recording

For testing purposes, it is often useful to connect 2 spans back to back on the board, and make an outbound call from one span to the next and see if the recording works properly.  In this situation, make sure to open at least 46 channels.  To make the test outbound call, press 'c' after all of the channels open.  The outbound portion is currently set to play the file "welcome.pcm".  This can be changed by running the makefile after editing this line in main.cpp:
evtDev->playFile(WELCOME_FILE);

To quit the program, press 'q'.

Product List

Application will work with other boards, but has been tested with the following:
D/240JCT, D/480JCT

Glossary of Acronyms / Terms

CPA = Call Progress Analysis
DTMF = Dual Tone Multi Frequency
PCM = Pulse Code Modulation