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

Author: Marius Zbihlei <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date:   Thu Oct 22 16:31:35 2009 +0300

Fixed tm_load import (It would be advisable to use tm_load_api instead )
(cherry picked from commit 12d008ca184460755f09bf4090f0298d4a092e84)

---

 modules_k/pua_xmpp/pua_xmpp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules_k/pua_xmpp/pua_xmpp.c b/modules_k/pua_xmpp/pua_xmpp.c
index bc60bfc..3212c8d 100644
--- a/modules_k/pua_xmpp/pua_xmpp.c
+++ b/modules_k/pua_xmpp/pua_xmpp.c
@@ -136,11 +136,12 @@ static int mod_init(void)
        server_address.len= strlen(server_address.s);
 
        /* import the TM auto-loading function */
-       if((load_tm=(load_tm_f)find_export("load_tm", 0, 0))==NULL)
+       if((load_tm=(load_tm_f)find_export("load_tm", NO_SCRIPT, 0))==NULL)
        {
                LM_ERR("can't import load_tm\n");
                return -1;
        }
+
        /* let the auto-loading function load all TM stuff */
 
        if(load_tm(&tmb)==-1)


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

Reply via email to