[Freeswitch-svn] [commit] r2518 - freeswitch/trunk/src/mod/applications/mod_dptools

Freeswitch SVN mikej at freeswitch.org
Tue Sep 5 14:52:16 EDT 2006


Author: mikej
Date: Tue Sep  5 14:52:16 2006
New Revision: 2518

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

Log:
add some syntax and descriptions of api commands and applications.

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	Tue Sep  5 14:52:16 2006
@@ -123,30 +123,40 @@
 
 static const switch_application_interface_t set_application_interface = {
 	/*.interface_name */ "set",
-	/*.application_function */ set_function
+	/*.application_function */ set_function,
+	/* long_desc */ "Set a channel varaible for the channel calling the application.",
+	/* short_desc */ "Set a channel varaible.",
+	/* syntax */ "<varname>=[<value>|_UNDEF_]",
+	/*.next */ NULL
 };
 
 static const switch_application_interface_t answer_application_interface = {
 	/*.interface_name */ "answer",
 	/*.application_function */ answer_function,
-	NULL,NULL,NULL,
-	&set_application_interface
+	/* long_desc */ "Answer the call for a channel.",
+	/* short_desc */ "Answer the call.",
+	/* syntax */ "",
+	/*.next */ &set_application_interface
 
 };
 
 static const switch_application_interface_t strftime_application_interface = {
 	/*.interface_name */ "strftime",
 	/*.application_function */ strftime_function,
-	NULL,NULL,NULL,
-	&answer_application_interface
+	/* long_desc */ NULL,
+	/* short_desc */ NULL,
+	/* syntax */ NULL,
+	/*.next */ &answer_application_interface
 
 };
 
 static const switch_application_interface_t sleep_application_interface = {
 	/*.interface_name */ "sleep",
 	/*.application_function */ sleep_function,
-	NULL,NULL,NULL,
-	&strftime_application_interface
+	/* long_desc */ "Pause the channel for a given number of milliseconds, consuming the audio for that period of time.",
+	/* short_desc */ "Pause a channel",
+	/* syntax */ "<pausemilliseconds>",
+	/* next */ &strftime_application_interface
 };
 
 static const switch_loadable_module_interface_t mod_dptools_module_interface = {



More information about the Freeswitch-svn mailing list