FireBrick Call Recording
Overview
The FireBrick supports call recording by teeing off the two way audio from a call leg and sending to a SIP endpoint. The SIP endpoint will then record the call and handle it in any way you wish.
The recording is controlled by setting an email address on a call leg. This can be configured for telephone users and set to automatically record incoming one, outgoing only, or all calls. You can also set this on a hunt group to record all incoming calls to the hunt group (attaching the recording to the calling leg).
The recording server can be any SIP endpoint, such as an asterisk box. A Linux-based call recording app is available to FireBrick customers for this purpose. This comes in the form of a C call recording application, and a python emailing script.
If the SIP endpoint supports stereo A-law then the recording is made in stereo with each side of the conversation on a channel. Our call recording app makes stereo A-law WAV files, and can be configured to send these by email as each call ends.
Configuring the FireBrick for call recording
To set up automatic call recording you must, at a minimum:
- give the FireBrick the location of your call recording server; and
- configure each extension you wish to record.
Give the FireBrick the location of your call recording server
You give the FireBrick the location of your call recording server by setting the record-server property. This can be either a hostname or IP address.
By default, the FireBrick will play a beep before recording begins. If you want to stop this, set record-beep to false. This is an additional attribute, as part of the main voip config. It applies to all recordings.
Configure each extension you wish to record
You must set the record property for each extension you wish to record automatically. By default this is set to false; to record automatically, on both inbound and outbound calls, set this to true. If you want to record only inbound or outbound calls, set the property to either in-only or out-only accordingly.
If you want the recording to be emailed to the user, you need to set the user's email address, via the email property. This is passed to the call recording application, which handles the email sending.
Configuring the call recording software
There are two elements to the A&A/FireBrick call recording software:
- a C application, voip-record, which acts as a SIP endpoint and handles the call recording; and
- a python script
Setting up voip-record
The voip-record application comes with a Makefile, but I found I needed to make a couple of tweaks to get it to work:
1.) the Makefile is dependent on deps/siptools.c. If you do not have access to the A&A svn, you'll need to:
a.) comment out the following lines in the Makefile:
svn export --force -r 28442 svn://changeless.aa.net.uk/fb6000/trunk/apps/siptools.c $@ touch $@ # SVN sets the timestamp to the committed one (which triggers "building" every time)
b.) make sure that you have siptools.c in dep/
2.) set the email address parameter (i.e. the from address). Change line 803 from:
sprintf (temp, "sip:%c@voiceless.aa.net.uk", done);
to whatever email address you want to the recordings to be sent from. (%c is the unique ID of the call recording)
3.) By default, the (temporary) path for the recordings is /tmp/. If you want to change this, amend line 62:
char template[] = "/tmp/voip-answer-XXXXXX";