Page 440 - Asterisk™: The Future of Telephony
P. 440

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.


                              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()

               Monitor()                                 Monitors (records) the audio on the current channel

               Monitor([file_format[:urlbase][,fname_base][,options]])

               Starts monitoring a channel. The channel’s input and output voice packets are logged
               to files until the channel hangs up or monitoring is stopped by the  StopMonitor()
               application.
               Monitor() takes the following arguments:

               file_format
                   Specifies the file format. If not set, defaults to wav.
               fname_base
                   If set, changes the filename used to the one specified.


               412 | Appendix B: Application Reference
   435   436   437   438   439   440   441   442   443   444   445