Name

MixMonitor() — Records a channel in the background, mixing both directions synchronously

Synopsis

MixMonitor(filename.ext,options,command)

Records the audio on the current channel to the specified file. If the filename is an absolute path, MixMonitor() uses that path; otherwise it creates the file in the configured monitoring directory from asterisk.conf.

If command is specified, it will be run when recording ends, either by hangup or by calling StopMixMonitor().

The options parameter can contain zero or more of the following options:

a

Append to the file, instead of overwriting it.

b

Only save audio when the channel is bridged.

Note

This does not include conferences or sounds played to each bridged party.

v(x)

Adjust the heard volume by a factor of x (range -4 to 4).

V(x)

Adjust the spoken volume by a factor of x (range -4 to 4).

W(x)

Adjust both the heard and the spoken volumes by a factor of x (range -4 to 4).

; Record channel
exten => 123,1,MixMonitor(/var/lib/asterisk/sounds/123.wav)

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.