]> 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:47 +0000 (19:35 +0000)
commit5a4026d080b279f4aebe96fc56bb71ab6fb37c27
tree76891250a3f98231eac1266fa8575ac3ffb51992
parent39ed13940bffa6a05e2880f8fa9fb45694e75589
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