[sr-dev] git:master:a0fe5523: tm: add t_release_transaction to api

Henning Westerholt henningw at users.noreply.github.com
Sat Mar 9 12:52:51 CET 2019


Module: kamailio
Branch: master
Commit: a0fe552305c44837ba4666d4142e4885ef0297f6
URL: https://github.com/kamailio/kamailio/commit/a0fe552305c44837ba4666d4142e4885ef0297f6

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Henning Westerholt <henningw at users.noreply.github.com>
Date: 2019-03-09T12:52:43+01:00

tm: add t_release_transaction to api

---

Modified: src/modules/tm/t_funcs.h
Modified: src/modules/tm/tm_load.c
Modified: src/modules/tm/tm_load.h

---

Diff:  https://github.com/kamailio/kamailio/commit/a0fe552305c44837ba4666d4142e4885ef0297f6.diff
Patch: https://github.com/kamailio/kamailio/commit/a0fe552305c44837ba4666d4142e4885ef0297f6.patch

---

diff --git a/src/modules/tm/t_funcs.h b/src/modules/tm/t_funcs.h
index 68701c5342..1b90c20d45 100644
--- a/src/modules/tm/t_funcs.h
+++ b/src/modules/tm/t_funcs.h
@@ -191,6 +191,7 @@ int  t_add_transaction( struct sip_msg* p_msg  );
 
 /* returns 1 if everything was OK or -1 for error */
 int t_release_transaction( struct cell *trans );
+typedef int (*trelease_t)(struct cell *t);
 
 
 int get_ip_and_port_from_uri( str* uri , unsigned int *param_ip,
diff --git a/src/modules/tm/tm_load.c b/src/modules/tm/tm_load.c
index be5356fa13..1d58c06f0e 100644
--- a/src/modules/tm/tm_load.c
+++ b/src/modules/tm/tm_load.c
@@ -141,6 +141,7 @@ int load_tm( struct tm_binds *tmb)
 	tmb->t_load_contacts = t_load_contacts;
 	tmb->t_next_contacts = t_next_contacts;
 	tmb->set_fr = t_set_fr;
+	tmb->t_release_transaction = t_release_transaction;
 	return 1;
 }
 
diff --git a/src/modules/tm/tm_load.h b/src/modules/tm/tm_load.h
index c1fece4403..3fa52f8f28 100644
--- a/src/modules/tm/tm_load.h
+++ b/src/modules/tm/tm_load.h
@@ -128,6 +128,7 @@ struct tm_binds {
 	cmd_function	t_load_contacts;
 	cmd_function	t_next_contacts;
 	tset_fr_f set_fr;
+	trelease_t      t_release_transaction;
 };
 
 typedef struct tm_binds tm_api_t;




More information about the sr-dev mailing list