Jump to content

How to Record Phone Calls Using Asterisk

0
  chco's Photo
Posted Jun 09 2011 01:32 PM

If you would like to give some users the ability to enable call recording by pressing a key sequence during a call, the excerpt below from the O'Reilly publication Asterisk Cookbook speaks to how you can accomplish that.

Use the automixmon feature. This feature is built into Asterisk. You just have to enable it in a couple of configuration files. First, set the automixmon option in features.conf to the key sequence you would like to use for enabling or disabling recording:

[featuremap]
automixmon = *3


Now that the key sequence has been set, you must modify extensions.conf to allow callers to use this feature. This is done by setting the x and/or X options in the Dial() or Queue() application:

x

Give the called party the ability to toggle call recording using the automixmon feature.


X

Give the calling party the ability to toggle call recording using the automixmon feature:


;
; When someone calls my extension, dial my phone and give
; me the ability to enable recording on the fly.
;
exten => 7001,1,Dial(SIP/myphone,30,x)


The featuremap section of features.conf has some other features that are configured and enabled in this same manner. You configure the key sequence for the feature in features.conf and then enable the feature on a per-call basis using arguments to the Dial() or Queue() applications. Here is a list of all of the features in the featuremap section:

blindxfer

DTMF triggered blind transfers. Enable it using the t and/or T options to Dial() or Queue().


atxfer

DTMF triggered attended transfers. Enable it using the t and/or T options to Dial() or Queue().


disconnect

DTMF triggered call hangup. Enable it using the h and/or H options to Dial() or Queue().


parkcall

DTMF triggered call parking. Enable it using the k and/or K options to Dial() or Queue().


automixmon

DTMF triggered call recording using the MixMonitor() application. Enable it using the x and/or X options to Dial() or Queue().


automon

DTMF triggered call recording using the Monitor() application. We recommend using the automixmon feature instead of this one unless you have a specific need for using Monitor() instead of MixMonitor(). Enable this feature by specifying the w and/or W options to Dial() or Queue().


Asterisk Cookbook

Learn more about this topic from Asterisk Cookbook.

Asterisk has a wealth of features to help you customize your PBX to fill very specific business needs. This short cookbook offers recipes for tackling dialplan fundamentals, making and controlling calls, and monitoring channels in your PBX environment. Each recipe includes a simple code solution you can put to work immediately, along with a detailed discussion that offers insight into why and how the recipe works.

See what you'll learn


Tags:
0 Subscribe


0 Replies