Module: sip-router
Branch: master
Commit: c86151089e1eed97d264050f1a09501f5eafb0de
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c861510…
Author: Hugh Waite <hugh.waite(a)acision.com>
Committer: Hugh Waite <hugh.waite(a)acision.com>
Date: Wed Oct 29 15:28:37 2014 +0000
tm: Export additional functions from tm modules
- t_load_contacts and t_next_contacts in tm
- t_on_branch_failure in tmx
---
modules/tm/tm_load.c | 3 +++
modules/tm/tm_load.h | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/tm/tm_load.c b/modules/tm/tm_load.c
index e95d618..7740db8 100644
--- a/modules/tm/tm_load.c
+++ b/modules/tm/tm_load.c
@@ -148,6 +148,8 @@ int load_tm( struct tm_binds *tmb)
tmb->tm_ctx_get = tm_ctx_get;
#endif
tmb->t_append_branches = t_append_branches;
+ tmp->t_load_contacts = t_load_contacts;
+ tmp->t_next_contacts = t_next_contacts;
return 1;
}
@@ -166,6 +168,7 @@ int load_xtm(tm_xapi_t *xapi)
xapi->t_on_reply = t_on_reply;
xapi->t_check_trans = t_check_trans;
xapi->t_is_canceled = t_is_canceled;
+ xapi->t_on_branch_failure = t_on_branch_failure;
return 0;
}
diff --git a/modules/tm/tm_load.h b/modules/tm/tm_load.h
index 06905c2..b5e9766 100644
--- a/modules/tm/tm_load.h
+++ b/modules/tm/tm_load.h
@@ -51,6 +51,7 @@
#include "t_suspend.h"
#include "t_append_branches.h"
#include "t_stats.h"
+#include "t_serial.h"
/* export not usable from scripts */
#define NO_SCRIPT -1
@@ -135,6 +136,8 @@ struct tm_binds {
void* reserved5;
#endif
t_append_branches_f t_append_branches;
+ cmd_function t_load_contacts;
+ cmd_function t_next_contacts;
};
typedef struct tm_binds tm_api_t;
@@ -182,6 +185,7 @@ int t_is_canceled(struct sip_msg* msg);
typedef struct tm_xbinds {
t_on_route_f t_on_failure;
t_on_route_f t_on_branch;
+ t_on_route_f t_on_branch_failure;
t_on_route_f t_on_reply;
t_no_param_f t_check_trans;
t_no_param_f t_is_canceled;