فهرست منبع

tm: t_lookupOriginalT() added to TM API structure

Daniel-Constantin Mierla 16 سال پیش
والد
کامیت
9a9627a248
3فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 3 0
      modules/tm/t_lookup.h
  2. 1 0
      modules/tm/tm_load.c
  3. 1 0
      modules/tm/tm_load.h

+ 3 - 0
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*);

+ 1 - 0
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;

+ 1 - 0
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;