[Devel] add replication for tm

Ingo Wolfsberger iwolfsberger at gmx.net
Wed Jul 20 19:46:34 CEST 2005


Hi

I have added the replication functions to the tm api.
I have also added the tls t_relay function to the api.

patch is attached.

bye,
   Ingo

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++
-------------- next part --------------
Logging in to :pserver:anonymous at cvs.sourceforge.net:2401/cvsroot/openser
Index: sip-server/modules/tm/tm.c
===================================================================
RCS file: /cvsroot/openser/sip-server/modules/tm/tm.c,v
retrieving revision 1.3
diff -u -r1.3 tm.c
--- sip-server/modules/tm/tm.c	20 Jun 2005 19:56:34 -0000	1.3
+++ sip-server/modules/tm/tm.c	20 Jul 2005 17:43:21 -0000
@@ -414,10 +414,22 @@
 {
 	tmb->register_tmcb = register_tmcb;
 
+	/* replicate function */
+	tmb->t_replicate = w_t_replicate;
+	tmb->t_replicate_udp = w_t_replicate_udp;
+#ifdef USE_TCP
+	tmb->t_replicate_tcp = w_t_replicate_tcp;
+#endif
+#ifdef USE_TLS
+	tmb->t_replicate_tls = w_t_replicate_tls;
+#endif
 	/* relay / reply function */
 #ifdef USE_TCP
 	tmb->t_relay_to_tcp = w_t_relay_to_tcp;
 #endif
+#ifdef USE_TLS
+	tmb->t_relay_to_tls = w_t_relay_to_tls;
+#endif
 	tmb->t_relay_to_udp = w_t_relay_to_udp;
 	tmb->t_relay = w_t_relay;
 	tmb->t_forward_nonack = (tfwd_f)w_t_forward_nonack;
Index: sip-server/modules/tm/tm_load.h
===================================================================
RCS file: /cvsroot/openser/sip-server/modules/tm/tm_load.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 tm_load.h
--- sip-server/modules/tm/tm_load.h	13 Jun 2005 16:47:47 -0000	1.1.1.1
+++ sip-server/modules/tm/tm_load.h	20 Jul 2005 17:43:21 -0000
@@ -42,8 +42,13 @@
 
 struct tm_binds {
 	register_tmcb_f  register_tmcb;
+	cmd_function	 t_replicate;
+	cmd_function	 t_replicate_udp;
+	cmd_function	 t_replicate_tcp;
+	cmd_function	 t_replicate_tls;
 	cmd_function     t_relay_to_udp;
 	cmd_function     t_relay_to_tcp;
+	cmd_function     t_relay_to_tls;
 	cmd_function     t_relay;
 	tnewtran_f       t_newtran;
 	treply_f         t_reply;


More information about the Devel mailing list