Module: kamailio
Branch: 6.0
Commit: 0637ca7e0b7795c33ab9f230c0eee65d6ea80e8d
URL: 
https://github.com/kamailio/kamailio/commit/0637ca7e0b7795c33ab9f230c0eee65d6ea80e8d

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <22965395+xkara...@users.noreply.github.com>
Date: 2025-06-18T08:40:39Z

tmx: Update to use new tm FLAG for CANCEL

(cherry picked from commit caad49279e6db7e85e3f2b84276f9defb0aa4eef)

---

Modified: src/modules/tmx/tmx_mod.c

---

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

---

diff --git a/src/modules/tmx/tmx_mod.c b/src/modules/tmx/tmx_mod.c
index aae6547834d..4e1e7c78289 100644
--- a/src/modules/tmx/tmx_mod.c
+++ b/src/modules/tmx/tmx_mod.c
@@ -333,7 +333,7 @@ static int t_cancel_branches_helper(sip_msg_t *msg, int n)
        LM_DBG("canceling %d/%d\n", n, (int)cancel_data.cancel_bitmap);
        if(cancel_data.cancel_bitmap == 0)
                return -1;
-       _tmx_tmb.cancel_uacs(t, &cancel_data, 0);
+       _tmx_tmb.cancel_uacs(t, &cancel_data, F_CANCEL_LOCAL);
        return 1;
 }
 
@@ -408,7 +408,7 @@ static int ki_t_cancel_callid_reason(
        cancel_data.reason.cause = rcode;
        cancel_data.cancel_bitmap = 0;
        _tmx_tmb.prepare_to_cancel(trans, &cancel_data.cancel_bitmap, 0);
-       _tmx_tmb.cancel_uacs(trans, &cancel_data, 0);
+       _tmx_tmb.cancel_uacs(trans, &cancel_data, F_CANCEL_LOCAL);
 
        //_tmx_tmb.unref_cell(trans);
        _tmx_tmb.t_sett(bkt, bkb);

_______________________________________________
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