[sr-dev] git:master: Fixed tm_load import ( It would be advisable to use tm_load_api instead )

Marius Zbihlei marius.zbihlei at 1and1.ro
Thu Oct 22 15:32:25 CEST 2009


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

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Thu Oct 22 16:31:35 2009 +0300

Fixed tm_load import (It would be advisable to use tm_load_api instead )

---

 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)




More information about the sr-dev mailing list