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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-11-18T06:59:10+01:00

tm: exports get/set t/branch functions to intermodule api

---

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

---

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

---

diff --git a/src/modules/tm/t_lookup.h b/src/modules/tm/t_lookup.h
index e9c019c7b46..25f6d9eaa6e 100644
--- a/src/modules/tm/t_lookup.h
+++ b/src/modules/tm/t_lookup.h
@@ -79,7 +79,9 @@ int get_t_branch(void);
 typedef void (*tsett_f)(struct cell *t, int branch);
 void set_t(struct cell *t, int branch);
 
+typedef void (*tm_get_tb_f)(struct cell **t, int *branch);
 void tm_get_tb(struct cell **t, int *branch);
+typedef void (*tm_set_tb_f)(struct cell *t, int branch);
 void tm_set_tb(struct cell *t, int branch);
 
 #define T_GET_TI "t_get_trans_ident"
diff --git a/src/modules/tm/tm_load.c b/src/modules/tm/tm_load.c
index 7149873515e..0b4ff49e447 100644
--- a/src/modules/tm/tm_load.c
+++ b/src/modules/tm/tm_load.c
@@ -144,6 +144,8 @@ int load_tm(struct tm_binds *tmb)
        tmb->t_release_transaction = t_release_transaction;
        tmb->t_uas_request_clean_parsed = t_uas_request_clean_parsed;
        tmb->t_reply_error = ki_t_reply_error;
+       tmb->get_tb = tm_get_tb;
+       tmb->set_tb = tm_set_tb;
        return 1;
 }
 
diff --git a/src/modules/tm/tm_load.h b/src/modules/tm/tm_load.h
index bf41eb789ef..4d160b585dc 100644
--- a/src/modules/tm/tm_load.h
+++ b/src/modules/tm/tm_load.h
@@ -131,6 +131,8 @@ struct tm_binds
        trelease_t t_release_transaction;
        t_uas_request_clean_parsed_f t_uas_request_clean_parsed;
        t_no_param_f t_reply_error;
+       tm_get_tb_f get_tb;
+       tm_set_tb_f set_tb;
 };
 
 typedef struct tm_binds tm_api_t;

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to