[sr-dev] git:master: tm: internal t_reply exported via API

Daniel-Constantin Mierla miconda at gmail.com
Tue May 11 15:27:58 CEST 2010


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue May 11 15:00:42 2010 +0200

tm: internal t_reply exported via API

- internal t_reply exported as t_reply_trans - it takes transaction
  pointer as parameter
- removed duplicate include of t_reply.h

---

 modules/tm/t_reply.h |    2 ++
 modules/tm/tm_load.c |    1 +
 modules/tm/tm_load.h |    2 +-
 3 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/tm/t_reply.h b/modules/tm/t_reply.h
index b798fa1..a348ccd 100644
--- a/modules/tm/t_reply.h
+++ b/modules/tm/t_reply.h
@@ -71,6 +71,8 @@ typedef int (*treply_f)(struct sip_msg * , unsigned int , char * );
 typedef int (*treply_wb_f)( struct cell* trans,
 	unsigned int code, char * text, char * body, 
 	char * new_header, char * to_tag);
+typedef int (*treply_trans_f)(struct cell *t, struct sip_msg* p_msg, unsigned int code,
+	char * text);
 
 /* wrapper function needed after changes in w_t_reply */
 int w_t_reply_wrp(struct sip_msg *m, unsigned int code, char *txt);
diff --git a/modules/tm/tm_load.c b/modules/tm/tm_load.c
index 078329f..0b19ad2 100644
--- a/modules/tm/tm_load.c
+++ b/modules/tm/tm_load.c
@@ -87,6 +87,7 @@ int load_tm( struct tm_binds *tmb)
 	tmb->register_tmcb =register_tmcb;
 	tmb->t_reply = w_t_reply_wrp;
 	tmb->t_reply_with_body = t_reply_with_body;
+	tmb->t_reply_trans = t_reply;
 	tmb->t_is_local = t_is_local;
 	tmb->t_get_trans_ident = t_get_trans_ident;
 	tmb->t_lookup_ident = t_lookup_ident;
diff --git a/modules/tm/tm_load.h b/modules/tm/tm_load.h
index e7c0fa9..2d4b6f6 100644
--- a/modules/tm/tm_load.h
+++ b/modules/tm/tm_load.h
@@ -43,7 +43,6 @@
 #include "t_hooks.h"
 #include "uac.h"
 #include "t_fwd.h"
-#include "t_reply.h"
 #include "t_lookup.h"
 #include "t_reply.h"
 #include "dlg.h"
@@ -68,6 +67,7 @@ struct tm_binds {
 	tlookup_ident_f  t_lookup_ident;
 	taddblind_f      t_addblind;
 	treply_f         t_reply_unsafe;
+	treply_trans_f   t_reply_trans;
 	tfwd_f           t_forward_nonack;
 	reqwith_t        t_request_within;
 	reqout_t         t_request_outside;




More information about the sr-dev mailing list