It is possible for dialplan to result in an infinite
recursion of variable substitution, which eventually
leads to stack overflow. If we detect this, abort
substitution and log an error for the user to fix
the broken dialplan.
Resolves: #480
UpgradeNote: The maximum amount of dialplan recursion
using variable substitution (such as by using EVAL_EXTEN)
is capped at 15.
(cherry picked from commit f9f36ca702)
releases/certified-20.7
Naveen Albert1 year agocommitted byAsterisk Development Team
ast_log(LOG_ERROR,"Exceeded maximum variable substitution recursion depth (%d) - possible infinite recursion in dialplan?\n",MAX_VARIABLE_SUB_RECURSE_DEPTH);