]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Wed, 14 Feb 2024 13:19:13 +0000 (13:19 +0000)
commit526a6e0ce44ab3e114f0328cdc440127ff3e0982
tree08483171552e20cfed74e75858e896d82c60ee52
parent29a273618dc2b686d2044f6b4ecf1a9723e8c61c
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
main/dsp.c