]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3622 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Thu, 20 Oct 2011 14:28:42 +0000 (09:28 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Thu, 20 Oct 2011 14:28:42 +0000 (09:28 -0500)
src/mod/languages/mod_python/mod_python.c

index d5260ec1155115b6e6c7a796192ad2821013ed35..1245dea86749bba742b879ce363837892d613cde 100644 (file)
@@ -427,8 +427,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_python_load)
                setenv("PYTHONPATH", SWITCH_GLOBAL_dirs.script_dir, 1);
        }
 
-       SWITCH_ADD_CHAT_APP(chat_app_interface, "python", "execute a python script", "execute a python script", python_chat_function, "<script>", SCAF_NONE);
-
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Python Framework Loading...\n");
 
        globals.pool = pool;
@@ -466,6 +464,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_python_load)
        SWITCH_ADD_API(api_interface, "python", "run a python script", api_python, "python </path/to/script>");
        SWITCH_ADD_APP(app_interface, "python", "Launch python ivr", "Run a python ivr on a channel", python_function, "<script> [additional_vars [...]]",
                                   SAF_SUPPORT_NOMEDIA);
+       SWITCH_ADD_CHAT_APP(chat_app_interface, "python", "execute a python script", "execute a python script", python_chat_function, "<script>", SCAF_NONE);
 
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_NOUNLOAD;