[sr-dev] git:master: tm: t_lookupOriginalT() added to TM API structure

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 24 22:52:08 CEST 2009


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Jun 23 17:22:08 2009 +0200

tm: t_lookupOriginalT() added to TM API structure

---

 modules/tm/t_lookup.h |    3 +++
 modules/tm/tm_load.c  |    1 +
 modules/tm/tm_load.h  |    1 +
 3 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/tm/t_lookup.h b/modules/tm/t_lookup.h
index a98d90a..6fc1ba6 100644
--- a/modules/tm/t_lookup.h
+++ b/modules/tm/t_lookup.h
@@ -56,7 +56,10 @@ extern unsigned int     global_msg_id;
 
 void init_t();
 int init_rb( struct retr_buf *rb, struct sip_msg *msg );
+
+typedef struct cell* (*tlookup_original_f)( struct sip_msg* p_msg );
 struct cell* t_lookupOriginalT( struct sip_msg* p_msg );
+
 int t_reply_matching( struct sip_msg* , int* );
 
 typedef int (*tlookup_request_f)(struct sip_msg*, int, int*);
diff --git a/modules/tm/tm_load.c b/modules/tm/tm_load.c
index 5fa054a..02dd7f5 100644
--- a/modules/tm/tm_load.c
+++ b/modules/tm/tm_load.c
@@ -232,6 +232,7 @@ int load_tm( struct tm_binds *tmb)
 	tmb->generate_callid = generate_callid;
 	tmb->generate_fromtag = generate_fromtag;
 	tmb->t_lookup_request = t_lookup_request;
+	tmb->t_lookup_original = t_lookupOriginalT;
 	tmb->t_check = t_check;
 	tmb->unref_cell = unref_cell;
 	tmb->which_cancel = which_cancel;
diff --git a/modules/tm/tm_load.h b/modules/tm/tm_load.h
index 2d5bf46..8a556d6 100644
--- a/modules/tm/tm_load.h
+++ b/modules/tm/tm_load.h
@@ -140,6 +140,7 @@ struct tm_binds {
 	generate_callid_f generate_callid;
 	generate_fromtag_f generate_fromtag;
 	tlookup_request_f t_lookup_request;
+	tlookup_original_f t_lookup_original;
 	tcheck_f t_check;
 	unref_cell_f unref_cell;
 	which_cancel_f which_cancel;




More information about the sr-dev mailing list