]> git.ipfire.org Git - thirdparty/asterisk.git/commit
dsp.c: Fix and improve potentially inaccurate log message.
authorNaveen Albert <asterisk@phreaknet.org>
Fri, 9 Feb 2024 22:07:13 +0000 (17:07 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 7 Mar 2024 14:16:38 +0000 (14:16 +0000)
commitd140a4c2df885f2959bf7b3c33bcaa940bf9b6dd
tree74a6585291bc1b602eae5044b640cf9b5c543a2d
parentf3c3c5720df8afe0923e18dc883c7203b920802d
dsp.c: Fix and improve potentially inaccurate log message.

If ast_dsp_process is called with a codec besides slin, ulaw,
or alaw, a warning is logged that in-band DTMF is not supported,
but this message is not always appropriate or correct, because
ast_dsp_process is much more generic than just DTMF detection.

This logs a more generic message in those cases, and also improves
codec-mismatch logging throughout dsp.c by ensuring incompatible
codecs are printed out.

Resolves: #595
(cherry picked from commit c6f6d1a3ac1e08ea6144f5a52be305f42f78989b)
main/dsp.c