]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODAPP-337
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 18 Sep 2009 22:55:33 +0000 (22:55 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 18 Sep 2009 22:55:33 +0000 (22:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14922 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_cidlookup/mod_cidlookup.c
src/mod/applications/mod_curl/mod_curl.c
src/mod/applications/mod_dptools/mod_dptools.c
src/mod/applications/mod_easyroute/mod_easyroute.c
src/mod/applications/mod_enum/mod_enum.c
src/mod/applications/mod_lcr/mod_lcr.c
src/mod/applications/mod_nibblebill/mod_nibblebill.c

index c3eac4f996e4e165503e796f35a3c9d879e71438..59fc59b0b332599ec4af91aaa486c6e804f48c11 100755 (executable)
@@ -560,7 +560,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_cidlookup_load)
        
        SWITCH_ADD_API(api_interface, "cidlookup", "cidlookup API", cidlookup_function, SYNTAX);
        SWITCH_ADD_APP(app_interface, "cidlookup", "Perform a CID lookup", "Perform a CID lookup",
-                                  cidlookup_app_function, "[number [skipurl]]", SAF_SUPPORT_NOMEDIA);
+                                  cidlookup_app_function, "[number [skipurl]]", SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC);
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index 493888f59419089445d87fa971f3fea3dd38111d..56df40ab284244bb8bd4b0cb5cdb0d62d75afc09 100755 (executable)
@@ -419,7 +419,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_curl_load)
 
        SWITCH_ADD_API(api_interface, "curl", "curl API", curl_function, SYNTAX);
        SWITCH_ADD_APP(app_interface, "curl", "Perform a http request", "Perform a http request",
-                                  curl_app_function, SYNTAX, SAF_SUPPORT_NOMEDIA);
+                                  curl_app_function, SYNTAX, SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC);
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index e11d2b6b077bf6777450580d75186462ad595d7b..64a3fcce56e6f0f9d557ed59b00a5c6965878765 100644 (file)
@@ -2745,7 +2745,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load)
                                   SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC);
        SWITCH_ADD_APP(app_interface, "set_profile_var", "Set a caller profile variable", SET_PROFILE_VAR_LONG_DESC, set_profile_var_function,
                                   "<varname>=<value>", SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC);
-       SWITCH_ADD_APP(app_interface, "unset", "Unset a channel variable", UNSET_LONG_DESC, unset_function, "<varname>", SAF_SUPPORT_NOMEDIA);
+       SWITCH_ADD_APP(app_interface, "unset", "Unset a channel variable", UNSET_LONG_DESC, unset_function, "<varname>", SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC);
        SWITCH_ADD_APP(app_interface, "ring_ready", "Indicate Ring_Ready", "Indicate Ring_Ready on a channel.", ring_ready_function, "", SAF_SUPPORT_NOMEDIA);
        SWITCH_ADD_APP(app_interface, "remove_bugs", "Remove media bugs", "Remove all media bugs from a channel.", remove_bugs_function, "", SAF_NONE);
        SWITCH_ADD_APP(app_interface, "break", "Break", "Set the break flag.", break_function, "", SAF_SUPPORT_NOMEDIA);
@@ -2783,7 +2783,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load)
        SWITCH_ADD_APP(app_interface, "intercept", "intercept", "intercept", intercept_function, INTERCEPT_SYNTAX, SAF_NONE);
        SWITCH_ADD_APP(app_interface, "eavesdrop", "eavesdrop on a uuid", "eavesdrop on a uuid", eavesdrop_function, eavesdrop_SYNTAX, SAF_NONE);
        SWITCH_ADD_APP(app_interface, "three_way", "three way call with a uuid", "three way call with a uuid", three_way_function, threeway_SYNTAX, SAF_NONE);
-       SWITCH_ADD_APP(app_interface, "set_user", "Set a User", "Set a User", set_user_function, SET_USER_SYNTAX, SAF_SUPPORT_NOMEDIA);
+       SWITCH_ADD_APP(app_interface, "set_user", "Set a User", "Set a User", set_user_function, SET_USER_SYNTAX, SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC );
        SWITCH_ADD_APP(app_interface, "stop_dtmf", "stop inband dtmf", "Stop detecting inband dtmf.", stop_dtmf_session_function, "", SAF_NONE);
        SWITCH_ADD_APP(app_interface, "start_dtmf", "Detect dtmf", "Detect inband dtmf on the session", dtmf_session_function, "", SAF_NONE);
        SWITCH_ADD_APP(app_interface, "stop_dtmf_generate", "stop inband dtmf generation", "Stop generating inband dtmf.",
index f6f5b94cdd92e84fd4eb5fcb8c64b17f166b489a..49f3b77be5ff2be25433b9e68acbcfb1afde5731 100644 (file)
@@ -407,7 +407,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_easyroute_load)
        /* connect my internal structure to the blank pointer passed to me */
        *module_interface = switch_loadable_module_create_module_interface(pool, modname);
        SWITCH_ADD_API(api_interface, "easyroute", "EasyRoute", easyroute_function, "");
-       SWITCH_ADD_APP(app_interface, "easyroute", "Perform an easyroute lookup", "Perform an easyroute lookup", easyroute_app_function, "<number>", SAF_SUPPORT_NOMEDIA);
+       SWITCH_ADD_APP(app_interface, "easyroute", "Perform an easyroute lookup", "Perform an easyroute lookup", easyroute_app_function, "<number>", SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC);
        
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
index c4443a25a9d806f1f8d7cb48b748c368a710867c..e2d23352f84c35245b901901f0a0586c82e23d67 100644 (file)
@@ -835,7 +835,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_enum_load)
        SWITCH_ADD_API(api_interface, "enum", "ENUM", enum_function, "");
        SWITCH_ADD_API(api_interface, "enum_auto", "ENUM", enum_api, "");
        SWITCH_ADD_APP(app_interface, "enum", "Perform an ENUM lookup", "Perform an ENUM lookup", enum_app_function, "[reload | <number> [<root>]]",
-                                  SAF_SUPPORT_NOMEDIA);
+                                  SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC);
        SWITCH_ADD_DIALPLAN(dp_interface, "enum", enum_dialplan_hunt);
 
 
index 5a48fe56f24bed2724b95ecdb54ead4e8c339673..475893acc0c9db46de007fd2872364b33937bc0f 100644 (file)
@@ -1538,7 +1538,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_lcr_load)
        SWITCH_ADD_API(dialplan_lcr_api_interface, "lcr", "Least Cost Routing Module", dialplan_lcr_function, LCR_SYNTAX);
        SWITCH_ADD_API(dialplan_lcr_api_admin_interface, "lcr_admin", "Least Cost Routing Module Admin", dialplan_lcr_admin_function, LCR_ADMIN_SYNTAX);
        SWITCH_ADD_APP(app_interface, "lcr", "Perform an LCR lookup", "Perform an LCR lookup",
-                                  lcr_app_function, "<number>", SAF_SUPPORT_NOMEDIA);
+                                  lcr_app_function, "<number>", SAF_SUPPORT_NOMEDIA | SAF_ROUTING_EXEC);
        SWITCH_ADD_DIALPLAN(dp_interface, "lcr", lcr_dialplan_hunt);
        
        /* indicate that the module should continue to be loaded */
index 97192f1a9246aa02aea07fda3abec26bf415244c..a72f963dcf06c4a8746fa20c08634623009e865d 100644 (file)
@@ -845,7 +845,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_nibblebill_load)
        SWITCH_ADD_API(api_interface, "nibblebill", "Manage billing parameters for a channel/call", nibblebill_api_function, API_SYNTAX);
 
        /* Add dialplan applications */
-       SWITCH_ADD_APP(app_interface, "nibblebill", "Handle billing for the current channel/call", "Pause, resume, reset, adjust, flush, heartbeat commands to handle billing.", nibblebill_app_function, APP_SYNTAX, SAF_NONE);
+       SWITCH_ADD_APP(app_interface, "nibblebill", "Handle billing for the current channel/call", "Pause, resume, reset, adjust, flush, heartbeat commands to handle billing.", nibblebill_app_function, APP_SYNTAX, SAF_NONE | SAF_ROUTING_EXEC);
 
        /* register state handlers for billing */
        switch_core_add_state_handler(&nibble_state_handler);