Dialogic Support Helpweb
Dialogic® DM3 & JCT Media Boards
Getting a Recording on Linux - ISDN
Simple application and source code which obtains a recording on inbound ISDN calls for Linux
Reason For the Problem
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 DM3 or Springware 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'.
Dialogic Product List
Application will work with other boards, but has been tested with the following:
D/240JCT, D/480JCT, DMV480A-2T1, DMV960A-4T1
Glossary of Acronyms / Terms
CPA = Call Progress Analysis
DTMF = Dual Tone Multi Frequency
PCM = Pulse Code Modulation
DATE
Last Updated 3/13/07


