[ASTERISK-71] app_if: ElseIf executed even if If is true
same => n,If(1)
same => n,NoOp(if 1)
same => n,ElseIf(1)
same => n,NoOp(else if 1)
same => n,EndIf()
[2024-06-27 21:03:34.034] -- Executing [1@from-internal:1] NoOp("", "") in new stack
[2024-06-27 21:03:34.035] -- Executing [1@from-internal:2] If("", "1") in new stack
[2024-06-27 21:03:34.035] -- Executing [1@from-internal:3] NoOp("", "if 1") in new stack
[2024-06-27 21:03:34.035] -- Executing [1@from-internal:4] ElseIf("", "1") in new stack
[2024-06-27 21:03:34.035] -- Executing [1@from-internal:5] NoOp("", "else if 1") in new stack
Workaround is to put an ExitIf at the end of the first If section, but that obviously should not be necessary.
Comments
You must be logged in to leave a comment.