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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-11-15T09:36:32+01:00

tm: rpc_cancel() switch to get/set T/branch helpers

---

Modified: src/modules/tm/t_cancel.c

---

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

---

diff --git a/src/modules/tm/t_cancel.c b/src/modules/tm/t_cancel.c
index 832fdf89dc1..0ec5aab200a 100644
--- a/src/modules/tm/t_cancel.c
+++ b/src/modules/tm/t_cancel.c
@@ -417,8 +417,7 @@ void rpc_cancel(rpc_t *rpc, void *c)
                return;
        }
 
-       orig_t = get_t();
-       orig_branch = get_t_branch();
+       tm_get_tb(&orig_t, &orig_branch);
        if(t_lookup_callid(&trans, callid_s, cseq_s) < 0) {
                LM_DBG("Lookup failed\n");
                rpc->fault(c, 400, "Transaction not found");
@@ -433,7 +432,7 @@ void rpc_cancel(rpc_t *rpc, void *c)
 
        /* t_lookup_callid REF`d the transaction for us, we must UNREF here! */
        UNREF(trans);
-       set_t(orig_t, orig_branch);
+       tm_set_tb(orig_t, orig_branch);
        j = 0;
        while(i) {
                j++;

_______________________________________________
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