add flags to the application interface for marking if apps support no media mode. FSCORE-7

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4400 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-02-26 21:38:10 +00:00
1 parent 5090abc9cf
commit 3e3760a996
18 files changed
+93 -20

No files matched your search

@@ -2570,7 +2570,10 @@ static switch_status_t launch_async(char *text, switch_core_session_t *session,
static const switch_application_interface_t ivrtest_application_interface = {
/*.interface_name */ "javascript",
/*.application_function */ js_parse_and_execute,
NULL, NULL, NULL,
/* long_desc */ "Run a javascript ivr on a channel",
/* short_desc */ "Launch JS ivr.",
/* syntax */ "<script> [additional_vars [...]]",
/* flags */ SAF_NONE, /* should we support no media mode here? If so, we need to detect the mode, and either disable the media functions or indicate media if/when we need */
/*.next*/ NULL
};
@@ -2578,7 +2581,7 @@ static switch_api_interface_t js_run_interface = {
/*.interface_name */ "jsrun",
/*.desc */ "run a script",
/*.function */ launch_async,
/*.syntax */ "jsrun <script>",
/*.syntax */ "jsrun <script> [additional_vars [...]]",
/*.next */ NULL
};