Thanks to visit codestin.com
Credit goes to github.com

Skip to content

func_evalexten: Add EVAL_SUB function.#952

Merged
asterisk-org-access-app[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-951
Nov 12, 2024
Merged

func_evalexten: Add EVAL_SUB function.#952
asterisk-org-access-app[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-951

Conversation

@InterLinked1

Copy link
Copy Markdown
Contributor

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

@InterLinked1

InterLinked1 commented Oct 17, 2024

Copy link
Copy Markdown
Contributor Author

cherry-pick-to: 20
cherry-pick-to: 21
cherry-pick-to: 22

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: asterisk#951
@gtjoseph gtjoseph added the cherry-pick-test Trigger dry run of cherry-picks label Nov 1, 2024
@github-actions github-actions Bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-failed Cherry-Pick checks failed and removed cherry-pick-test Trigger dry run of cherry-picks cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Nov 1, 2024
@github-actions

Copy link
Copy Markdown

Successfully merged to branch master and cherry-picked to ["20","21","22"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[new-feature]: func_evalexten: Add EVAL_SUB function

4 participants