mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 14:14:16 +00:00
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:
1 parent
5090abc9cf
commit
3e3760a996
18 files changed
+93
-20
No files matched your search
@@ -82,7 +82,10 @@ static void perl_function(switch_core_session_t *session, char *data)
|
||||
|
||||
static const switch_application_interface_t perl_application_interface = {
|
||||
/*.interface_name */ "perl",
|
||||
/*.application_function */ perl_function
|
||||
/*.application_function */ perl_function,
|
||||
NULL, NULL, NULL,
|
||||
/* 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
|
||||
};
|
||||
|
||||
static switch_loadable_module_interface_t perl_module_interface = {
|
||||
|
||||
@@ -256,8 +256,11 @@ static void php_function(switch_core_session_t *session, char *data)
|
||||
}
|
||||
|
||||
static const switch_application_interface_t php_application_interface = {
|
||||
/*.interface_name */ "php",
|
||||
/*.application_function */ php_function
|
||||
/*.interface_name */ "php",
|
||||
/*.application_function */ php_function,
|
||||
NULL, NULL, NULL,
|
||||
/* 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
|
||||
};
|
||||
|
||||
static switch_loadable_module_interface_t php_module_interface = {
|
||||
|
||||
@@ -86,7 +86,10 @@ static switch_status_t launch_python(char *text, switch_core_session_t *session,
|
||||
|
||||
static const switch_application_interface_t python_application_interface = {
|
||||
/*.interface_name */ "python",
|
||||
/*.application_function */ python_function
|
||||
/*.application_function */ python_function,
|
||||
NULL, NULL, NULL,
|
||||
/* 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
|
||||
};
|
||||
|
||||
static switch_api_interface_t python_run_interface = {
|
||||
|
||||
@@ -78,7 +78,10 @@ static void ruby_function(switch_core_session_t *session, char *data)
|
||||
|
||||
static const switch_application_interface_t ruby_application_interface = {
|
||||
/*.interface_name */ "ruby",
|
||||
/*.application_function */ ruby_function
|
||||
/*.application_function */ ruby_function,
|
||||
NULL, NULL, NULL,
|
||||
/* 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
|
||||
};
|
||||
|
||||
static switch_loadable_module_interface_t ruby_module_interface = {
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user