Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

FireBrick Call Recording: Difference between revisions

Content deleted Content added
Neil (talk | contribs)
AA-Andrew (talk | contribs)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=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 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.


Line 32: Line 30:
* a C application, ''voip-answer'', which acts as a SIP endpoint and handles the call recording; and
* a C application, ''voip-answer'', which acts as a SIP endpoint and handles the call recording; and
* a python script
* a python script

from: https://github.com/revk/voip-answer


==Setting up ''voip-answer''==
==Setting up ''voip-answer''==
Line 52: Line 52:
to whatever email address you want to the recordings to be sent from. (%c is the unique ID of the call recording)
to whatever email address you want to the recordings to be sent from. (%c is the unique ID of the call recording)


(As of 9th August 2018, this has been replaced in voip-answer.c with "sip:%s%.*s", so no modification is necessary.)
(As of 9 August 2018, this has been replaced in voip-answer.c with "sip:%s%.*s", so no modification is necessary.)


3.) By default, the (temporary) path for the recordings is /tmp/. If you want to change this, amend line 62:
3.) By default, the (temporary) path for the recordings is /tmp/. If you want to change this, amend line 62:
Line 86: Line 86:
If you want to run it as a background process (which you probably do...), append an ampersand:
If you want to run it as a background process (which you probably do...), append an ampersand:


./voip-answer -r /voipuser/voip-answer/python/voip-rec-email/voip_rec_email.py -d /voipuser/voip-answer/sounds/&
./voip-answer -r /voipuser/voip-answer/python/voip-rec-email/voip_rec_email.py -d /voipuser/voip-answer/sounds/ &


=Using the A&A / FireBrick call recording software for announcements (e.g. out of hours announcement)=
=Using the A&A / FireBrick call recording software for announcements (e.g. out of hours announcement)=
Line 97: Line 97:
* .wav
* .wav
* A-LAW
* A-LAW
* 8000Hz sample rate
* 8000 Hz sample rate
* mono only
* mono only


You can easily use Audacity to create suitable files; just remember to set the sample rate to 8000Hz, and to set the track to mono only, first.
You can easily use Audacity to create suitable files; just remember to set the sample rate to 8000 Hz, and to set the track to mono only, first.


If, when you play the files back through ''voip-answer'', they sound distorted, chances are you have either got the sample rate wrong, or else accidentally recorded them in stereo.
If, when you play the files back through ''voip-answer'', they sound distorted, chances are you have either got the sample rate wrong, or else accidentally recorded them in stereo.

If you have a recording at a different sample rate, using Audacity, change the project's sample rate to 8000, then change the recording's sample rate to 8000, and then use the "Change Speed" effect on the recording — if the original rate was 44100 Hz, apply a speed multiple of 5.50.


== Hosting the announcement / playback files ==
== Hosting the announcement / playback files ==
Line 123: Line 125:
N* The playback sequence is to be repeated N times
N* The playback sequence is to be repeated N times


You can download aai.wav and sit.wav [https://support.aa.net.uk/images/9/98/Firebrick_tones.zip here].
"ring" is the playback of file aai.wav, from whatever directory holds your sound files. If you do not have this, you can download your current ring.wav file from the FireBrick, and save it as aai.wav:

[yourfirebrickurl]/voip/ring.wav

"SIT" — special information tone — is the playback of sit.wav.

If you do not have this, you can download your current sit.wav file from the FireBrick:

[yourfirebrickurl]/voip/sit.wav


=== Filenames ===
=== Filenames ===
Line 151: Line 145:
=Pre-call announcements (e.g. "this call will be recorded")=
=Pre-call announcements (e.g. "this call will be recorded")=


You can combine these features with the REFER function ("#"), to create a extension which will first play back an announcement (such as "This call will be recorded"), before referring the call to your chosen destination.
You can combine these features with the REFER function ("#"), to create an extension which will first play back an announcement (such as "This call will be recorded"), before referring the call to your chosen destination.


You do not need to do anything with the voip-answer.c script (other than make sure your chosen recordings are in the right place).
You do not need to do anything with the voip-answer.c script (other than make sure your chosen recordings are in the right place).
Line 157: Line 151:
Configure your FireBrick:
Configure your FireBrick:


# As at 10th August 2018, make sure you have alphas enabled, and have at least alpha V1.48.123
# As at 10 August 2018, make sure you have alphas enabled, and have at least alpha V1.48.123
# Create a new telephone extension (or amend an existing one)
# Create a new telephone extension (or amend an existing one)
# Give it the username "Voicemail" and do not give it a password
# Give it the username "Voicemail" and do not give it a password