]> 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:58:40 +0000 (10:58 -0600)
commitddfb60ac2c92e0f182151792a489059afde6bf57
tree188040d1998f3c8ffd3560d9888ab04481b6bdc5
parent519f21ecb2bc3b4d7ff739c41dd9a6c9ad30604a
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