Monitor()
Synopsis
Monitor a channel.
Description
Used to start 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.
By default, files are stored to /var/spool/asterisk/monitor/. Returns -1 if monitor files can't be opened or if the channel is already monitored, otherwise 0.
Syntax
Monitor(file_format:urlbase,fname_base,options)
Arguments
file_formatfile_format- optional, if not set, defaults towavurlbase
fname_base- if set, changes the filename used to the one specified.optionsm- when the recording ends mix the two leg files into one and delete the two leg files. If the variableMONITOR_EXECis set, the application referenced in it will be executed instead of soxmix/sox and the raw leg files will NOT be deleted automatically. soxmix/sox orMONITOR_EXECis handed 3 arguments, the two leg files and a target mixed file name which is the same as the leg file names only without the in/out designator.
IfMONITOR_EXEC_ARGSis set, the contents will be passed on as additional arguments toMONITOR_EXEC. BothMONITOR_EXECand the Mix flag can be set from the administrator interface.b- Don't begin recording unless a call is bridged to another channel.i- Skip recording of input stream (disablesmoption).o- Skip recording of output stream (disablesmoption).
See Also
Import Version
This documentation was imported from Asterisk Version Unknown