[Freeswitch-trunk] [commit] r6230 - freeswitch/trunk/src/mod/applications/mod_commands

Freeswitch SVN anthm at freeswitch.org
Mon Nov 12 19:33:32 EST 2007


Author: anthm
Date: Mon Nov 12 19:33:31 2007
New Revision: 6230

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c

Log:
change qq to cond but let qq still work for the time being

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Mon Nov 12 19:33:31 2007
@@ -106,7 +106,7 @@
     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_ADD_API(commands_api_interface, "sched_del", "Delete a Scheduled task", sched_del_function, "<task_id>|<group_id>");
 	SWITCH_ADD_API(commands_api_interface, "xml_wrap", "Wrap another api command in xml", xml_wrap_api_function, "<command> <args>");
 	SWITCH_ADD_API(commands_api_interface, "is_lan_addr", "see if an ip is a lan addr", lan_addr_function, "<ip>");
-	SWITCH_ADD_API(commands_api_interface, "qq", "Eval a conditional", qq_function, "<expr> ? <true val> : <false val>");
+	SWITCH_ADD_API(commands_api_interface, "cond", "Eval a conditional", cond_function, "<expr> ? <true val> : <false val>");
+	// remove me before final release
+	SWITCH_ADD_API(commands_api_interface, "qq", "Eval a conditional", cond_function, "<expr> ? <true val> : <false val>");
 	SWITCH_ADD_API(commands_api_interface, "regex", "Eval a regex", regex_function, "<data>|<pattern>[|<subst string>]");
 
 	/* indicate that the module should continue to be loaded */



More information about the Freeswitch-trunk mailing list