Closed bobnil closed 1 month ago
Do you plan on putting up a pull request for this change?
Do you plan on putting up a pull request for this change?
If there's not one already, I can go ahead and put one up, I've noticed this as well.
I'm not comfortable enough to do the pull request, so go ahead.
Severity
Trivial
Versions
20.6.0, master
Components/Modules
main/file.c
Operating Environment
Debian 12.2.0-14
Frequency of Occurrence
Constant
Issue Description
Getting the
Unexpected control subclass '14'
when originating a call.Steps to reproduce:
Add this to the dialplan:
At the Asterisk command line:
Reload the dialplan:
Then originate a call:
A warning similar to the following appears:
Looking at the latest code downloaded from github, the warning occurs because no matching AST_CONTROL_xxx can be found.
Looking at frame.h value 14 corresponds to
AST_CONTROL_PROGRESS = 14
.In file.c there is a switch statement that lists several values to be ignored. AST_CONTROL_PROGRESS is not in that list, which is why the warning appears. Given that AST_CONTROL_RINGING and AST_CONTROL_ANSWER are ignored, it is likely that AST_CONTROL_PROGRESS can also be added to the list of values to be ignored.
Suggested edit of main/file.c
It looks like a similar change should be made in main/channel.c, which has a similar switch statement:
Relevant log output
Asterisk Issue Guidelines