]> 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:50 +0000 (19:35 +0000)
commitb01a3cfdcba7ad47739e16b3f3f24159c0fc1285
treefeaaee9009fbc9ee878e34eb154c4100792231e5
parent50bd50d7980d24391d7761a5acaf73e0fc071a48
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