Upgrade 3CX to v18 and get it hosted free!

Asterisk cmd ChangeMonitor

Author image

Synopsis

Change monitoring filename of a channel

Description

ChangeMonitor(basename)

If the channel is currently being recorded with the Monitor command, then this command will change the filename of the file being saved to. This command has no effect if the current channel is not being Monitored.
Note it will just rename the files being saved when the recording is stopped. It does not start a new recording with a new filename.

Can cause this harmless warning:
WARNING[28650] res_monitor.c: Cannot change monitor filename of channel SIP/… to …, monitoring not started

Tip: Can be nicely employed with the help of the g or M options to the Dial application. Do not forget to store the filename name in a variable that is enherited to the remote channel in case of using the M option, e.g. prefix that variable with an underscore, example:

Set(_RECFILENAME=xyz.wav)

Remarks:

  • Does not appear to work MixMonitor(), only Monitor()
  • Should also work from the h extension.

See also


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.