]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_mixmonitor: Set MIXMONITOR_FILENAME to correct value when wav49 is used
authorSean Bright <sean.bright@gmail.com>
Mon, 17 Feb 2020 14:05:16 +0000 (09:05 -0500)
committerSean Bright <sean.bright@gmail.com>
Mon, 17 Feb 2020 16:56:45 +0000 (11:56 -0500)
commit0246bca5817a808316483ce399976a024b9cdcfb
treeac5db556988af83b068fde3575eaba55f113b933
parent10632beb502f5900287e4f0c7c555702836d0108
app_mixmonitor: Set MIXMONITOR_FILENAME to correct value when wav49 is used

When opening a file for writing, Asterisk silently converts filenames
ending with 'wav49' to 'WAV.' We aren't taking that in to account when
setting the MIXMONITOR_FILENAME variable in MixMonitor.

* If the user wants to write to a wav49 file, make sure that it is
  reflected properly in MIXMONITOR_FILENAME.

* Add a note to the documentation describing this behavior.

* Add a note in main/file.c indicating that app_mixmonitor needs to be
  changed if the logic in build_filename was changed.

ASTERISK-24798 #close
Reported by: xrobau

Change-Id: I384691ce624eb55c80a125b9ca206d2d691c574c
apps/app_mixmonitor.c
doc/CHANGES-staging/app_mixmonitor_wav49.txt [new file with mode: 0644]
main/file.c