Module: sip-router
Branch: master
Commit: 4cc713182c4f5b53a00a8d2d6d3a21afca589b77
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4cc713182c4f5b53a00a8d2d6d3a21afca589b77

Author: Konstantin Mosesov <[email protected]>
Committer: Konstantin Mosesov <[email protected]>
Date:   Sun Jan 20 17:38:06 2013 +0200

app_python:
    - fixed runtime warning: exports dlflags interface is deprecated and it 
will not be supported in newer versions; consider using mod_register() instead
    - python routines can be called in any routes.

---

 modules/app_python/python_mod.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/app_python/python_mod.c b/modules/app_python/python_mod.c
index bfae63c..c5c60fc 100644
--- a/modules/app_python/python_mod.c
+++ b/modules/app_python/python_mod.c
@@ -66,15 +66,15 @@ static param_export_t params[]={
  * Exported functions
  */
 static cmd_export_t cmds[] = {
-    { "python_exec", (cmd_function)python_exec1, 1,  NULL, 0,  REQUEST_ROUTE | 
FAILURE_ROUTE  | ONREPLY_ROUTE | BRANCH_ROUTE },
-    { "python_exec", (cmd_function)python_exec2, 2,  NULL, 0,  REQUEST_ROUTE | 
FAILURE_ROUTE  | ONREPLY_ROUTE | BRANCH_ROUTE },
+    { "python_exec", (cmd_function)python_exec1, 1,  NULL, 0,  ANY_ROUTE },
+    { "python_exec", (cmd_function)python_exec2, 2,  NULL, 0,  ANY_ROUTE },
     { 0, 0, 0, 0, 0, 0 }
 };
 
 /** module exports */
 struct module_exports exports = {
     "app_python",                   /* module name */
-    RTLD_NOW | RTLD_GLOBAL,         /* dlopen flags */
+    DEFAULT_DLFLAGS,                /* dlopen flags */
     cmds,                           /* exported functions */
     params,                         /* exported parameters */
     0,                              /* exported statistics */


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to