New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: app_if.c : nested EndIf incorrectly exits parent If #341
Labels
Comments
jcolp
added
support-level-extended
Functionality with extended support level
and removed
triage
labels
Sep 20, 2023
InterLinked1
added a commit
to InterLinked1/asterisk
that referenced
this issue
Dec 23, 2023
This fixes faulty branching logic for the EndIf application. Instead of computing the next priority, which should be done for false conditionals or ExitIf, we should simply advance to the next priority. Resolves: asterisk#341
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Jan 8, 2024
This fixes faulty branching logic for the EndIf application. Instead of computing the next priority, which should be done for false conditionals or ExitIf, we should simply advance to the next priority. Resolves: #341
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Jan 8, 2024
This fixes faulty branching logic for the EndIf application. Instead of computing the next priority, which should be done for false conditionals or ExitIf, we should simply advance to the next priority. Resolves: #341
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Jan 8, 2024
This fixes faulty branching logic for the EndIf application. Instead of computing the next priority, which should be done for false conditionals or ExitIf, we should simply advance to the next priority. Resolves: #341
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Jan 8, 2024
This fixes faulty branching logic for the EndIf application. Instead of computing the next priority, which should be done for false conditionals or ExitIf, we should simply advance to the next priority. Resolves: #341
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Severity
Trivial
Versions
18
Components/Modules
app_if.c
Operating Environment
It doesn't matter.
Asterisk 18.19.0 built by builder @ builder.lo on a x86_64 running Linux on 2023-09-20 09:17:45
Frequency of Occurrence
None
Issue Description
If nested if block condition is true then EndIf exits the parent if block. (BTW, If condition is false, it works correctly. ExitIf also works correctly.)
Example simple dialplan:
We should see "inside true nested if" and then "after nested true if". Instead we jump to priority 12:
Relevant log output
No response
Asterisk Issue Guidelines
The text was updated successfully, but these errors were encountered: