Automon Call recording Set it to record by default


Im using a mixture of asterisk.1.6.x/1.8 and am looking at setting up call recording for calls. I have enabled automon *1 in features.conf and have that working with the following lines. Dial *1 while in call to start recording to /var/spool/asterisk/monitor and dial *1 to stop recording.

exten => 100,1,Set(DYNAMIC_FEATURES=automon) ; enable One-touch
exten => 100,2,Dial(SIP/numbertodial@sim3,wW) ; wW allow one-touch recording

How do I change automon so by default it starts recording without having to press *1?

feature show
Builtin Feature Default Current

Pickup *8 *8
Blind Transfer # #
Attended Transfer
One Touch Monitor 1
Disconnect Call * *
Park Call



Those dynamic features are enabled only with a feature code.

If you want all calls to be recorded, you could do a Dial with the M flag, for Macro, and execute a Macro that records the call.


Macros are deprecated.

Yes I can see Macros are depreciated now.

I know I should be able to use Dial with M flag and execute some sort of record Macro using mixmonitor.?

My problem is that a few members of staff who take credit card payments would have to be able to dial something to pause the recording for that call as I dont want the card details stored in the wav files.

Any Ideas how I can capture these keypresses in the call.?

Thanks for the info.

I have seen a post on … 47925.html
which has sort of what I want to have. All calls are auto recorded but you can opt out by pausing the recording.
I am going to try this tomorrow.

pauseMonitor => #1,peer/callee,Macro,recpause,monitor-disabled
startMonitor => #2,peer/callee,Macro,recstart
unpauseMonitor => #3,peer/callee,Macro,recunpause,monitor-enabled

exten => s,1,Playback(disabled)
exten => s,n,PauseMonitor

exten => s,1,Playback(enabled)
exten => s,n,UnpauseMonitor

exten => s,1,Set(FNAME=callrec_${MACRO_EXTEN}_${UNIQUEID}GWTEST${EPOCH})
exten => s,n,Monitor(wav,${FNAME},b)

exten => 100,1,Dial(SIP/100,20)
exten => 110,1,Answer
exten =>
exten => 110,n,Set(FNAME=callrec_${EXTEN}_${UNIQUEID}GWTEST${EPOCH})
;exten => 110,n,Monitor(wav,${FNAME},b)
exten => 110,n,Dial(SIP/110,20)
exten => 110,n,Hangup