Module: sip-router
Branch: kamailio_3.0
Commit: ee51f2f714d52d6cc36417bb65b764d718514984
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ee51f2f714d52d6cc36417bb65b764d718514984

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Thu Nov 26 21:29:45 2009 +0100

core: set response functions list after mod init

- some modules set the response function in mod_init
- case of nathelper(k)
- reported by Andres Moya

---

 sr_module.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/sr_module.c b/sr_module.c
index 1df69b7..b8db2c7 100644
--- a/sr_module.c
+++ b/sr_module.c
@@ -899,6 +899,10 @@ int init_modules(void)
        struct sr_module* t;
        int i;
        
+       i = init_mod(modules);
+       if(i!=0)
+               return i;
+
        for(t = modules; t; t = t->next)
                if (t->exports){
                        switch(t->mod_interface_ver){
@@ -938,7 +942,7 @@ int init_modules(void)
                }
        }
        
-       return init_mod(modules);
+       return 0;
 }
 
 #endif


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

Reply via email to