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)

See Also

Monitor(), StopMixMonitor(), PauseMonitor(), UnpauseMonitor()