From 7b8c46d0723a2bf4f90411d9d385c8066b3aa5f0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 13 Nov 2007 00:33:31 +0000 Subject: [PATCH] change qq to cond but let qq still work for the time being git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6230 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index e038dac654..afc1a09a1f 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -106,7 +106,7 @@ typedef enum { O_LE } o_t; -SWITCH_STANDARD_API(qq_function) +SWITCH_STANDARD_API(cond_function) { int argc; char *mydata = NULL, *argv[3]; @@ -1740,7 +1740,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_commands_load) SWITCH_ADD_API(commands_api_interface, "sched_del", "Delete a Scheduled task", sched_del_function, "|"); SWITCH_ADD_API(commands_api_interface, "xml_wrap", "Wrap another api command in xml", xml_wrap_api_function, " "); SWITCH_ADD_API(commands_api_interface, "is_lan_addr", "see if an ip is a lan addr", lan_addr_function, ""); - SWITCH_ADD_API(commands_api_interface, "qq", "Eval a conditional", qq_function, " ? : "); + SWITCH_ADD_API(commands_api_interface, "cond", "Eval a conditional", cond_function, " ? : "); + // remove me before final release + SWITCH_ADD_API(commands_api_interface, "qq", "Eval a conditional", cond_function, " ? : "); SWITCH_ADD_API(commands_api_interface, "regex", "Eval a regex", regex_function, "|[|]"); /* indicate that the module should continue to be loaded */