]> 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:18:41 +0000 (14:18 +0000)
commit31cb02dc01d55551bc65037d53b8ffc3c263b411
tree891982848b02f954ff01e2540c671127a5c7f776
parent3ca2bb5e84d245dddc8a5e1f3480b0affeaf05b2
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 6ddcdfce1ff7db5c888d1f135f3800bfa5d1c52c)
main/dsp.c