]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_evalexten: Add EVAL_SUB function.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 17 Oct 2024 13:18:45 +0000 (09:18 -0400)
committerNaveen Albert <asterisk@phreaknet.org>
Tue, 12 Nov 2024 19:35:53 +0000 (19:35 +0000)
commit34662cf0ea5fd3ff8d6d95ba0a20770e7ed94452
tree837144e7f823d2144fdcf3391f5ec9ef1dd4a525
parent2717068e1b70a32550016214fa79de94e9ceaff3
func_evalexten: Add EVAL_SUB function.

This adds an EVAL_SUB function, which is similar to the existing
EVAL_EXTEN function but significantly more powerful, as it allows
executing arbitrary dialplan and capturing its return value as
the function's output. While EVAL_EXTEN should be preferred if it
is possible to use it, EVAL_SUB can be used in a wider variety
of cases and allows arbitrary computation to be performed in
a dialplan function call, leveraging the dialplan.

Resolves: #951
funcs/func_evalexten.c