]> git.ipfire.org Git - thirdparty/asterisk.git/commit
variables: Add additional variable dialplan functions.
authorJoshua C. Colp <jcolp@sangoma.com>
Thu, 31 Aug 2023 10:31:20 +0000 (07:31 -0300)
committerAsterisk Development Team <asteriskteam@digium.com>
Fri, 12 Jan 2024 18:21:31 +0000 (18:21 +0000)
commitd371d371a067b7a23764afa6e354f872854134b7
tree780a0b518696ca672c121d14d42726940622004d
parent8517c62842d9fad0a208bf688c5a2fcbe76c8304
variables: Add additional variable dialplan functions.

Using the Set dialplan application does not actually
delete channel or global variables. Instead the
variables are set to an empty value.

This change adds two dialplan functions,
GLOBAL_DELETE and DELETE which can be used to
delete global and channel variables instead
of just setting them to empty.

There is also no ability within the dialplan to
determine if a global or channel variable has
actually been set or not.

This change also adds two dialplan functions,
GLOBAL_EXISTS and VARIABLE_EXISTS which can be
used to determine if a global or channel variable
has been set or not.

Resolves: #289

UserNote: Four new dialplan functions have been added.
GLOBAL_DELETE and DELETE have been added which allows
the deletion of global and channel variables.
GLOBAL_EXISTS and VARIABLE_EXISTS have been added
which checks whether a global or channel variable has
been set.

(cherry picked from commit 039bbddd4f0d362ecf6d35921e5d4171d0ee1ae8)
funcs/func_global.c
funcs/func_logic.c