Module: sip-router
Branch: master
Commit: 60aee183d5a11e73187476acd51a8fef0c939b9e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=60aee18…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Jun 1 20:47:36 2009 +0300
sl(k) - use load_tm_api()
- better way to load the tm api as SR TM exports functions with
NO_SCRIPT flag
- reported by Juha Heinanen
---
modules_k/sl/sl.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules_k/sl/sl.c b/modules_k/sl/sl.c
index 293246c..5c41c59 100644
--- a/modules_k/sl/sl.c
+++ b/modules_k/sl/sl.c
@@ -148,8 +148,6 @@ struct module_exports exports= {
static int mod_init(void)
{
- load_tm_f load_tm;
-
/* if statistics are disabled, prevent their registration to core */
if (sl_enable_stats==0)
exports.stats = 0;
@@ -179,11 +177,10 @@ static int mod_init(void)
if(sl_bind_tm!=0)
{
- if ( (load_tm=(load_tm_f)find_export("load_tm", 0, 0)))
+ if(load_tm_api(&tmb)==-1)
{
- load_tm( &tmb );
- } else {
- LM_INFO("could not bind tm module - only stateless mode available\n");
+ LM_INFO("could not bind tm module - only stateless mode"
+ " available\n");
sl_bind_tm=0;
}
}