MixMonitor() — Records a channel in the background, mixing both directions synchronously
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:
Append to the file, instead of overwriting it.
Only save audio when the channel is bridged.
This does not include conferences or sounds played to each bridged party.
x)Adjust the heard volume by a factor of
            x (range -4 to 4).
x)Adjust the spoken volume by a factor of
            x (range -4 to 4).
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)