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

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Henning Westerholt <h...@gilawa.com>
Date: 2025-06-18T09:07:59+02:00

tmx: Update to use new tm FLAG for CANCEL

---

Modified: src/modules/tmx/tmx_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/caad49279e6db7e85e3f2b84276f9defb0aa4eef.diff
Patch: 
https://github.com/kamailio/kamailio/commit/caad49279e6db7e85e3f2b84276f9defb0aa4eef.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