Module: kamailio Branch: master Commit: e99fea0bb6b9a81c253444321315a2b040d2e29e URL: https://github.com/kamailio/kamailio/commit/e99fea0bb6b9a81c253444321315a2b040d2e29e
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-05-28T14:03:52+02:00 tm: more debug messages when attempting to send cancel for a branch --- Modified: src/modules/tm/t_cancel.c --- Diff: https://github.com/kamailio/kamailio/commit/e99fea0bb6b9a81c253444321315a2b040d2e29e.diff Patch: https://github.com/kamailio/kamailio/commit/e99fea0bb6b9a81c253444321315a2b040d2e29e.patch --- diff --git a/src/modules/tm/t_cancel.c b/src/modules/tm/t_cancel.c index dcf833ab99b..2f9ae7efeca 100644 --- a/src/modules/tm/t_cancel.c +++ b/src/modules/tm/t_cancel.c @@ -255,10 +255,13 @@ int cancel_branch(struct cell *t, int branch, sip_msg_t *cancel_msg, reply_status = relay_reply(t, FAKED_REPLY, branch, 487, &tmp_cd, 1); if(reply_status == RPS_ERROR || reply_status == RPS_TGONE) { + LM_DBG("skip sending cancel - reply status: %d\n", + reply_status); return -1; } } /* do nothing, hope that the caller will clean up */ + LM_DBG("skip sending cancel - flags: F_CANCEL_B_KILL\n"); return ret; } } else { @@ -277,11 +280,16 @@ int cancel_branch(struct cell *t, int branch, sip_msg_t *cancel_msg, reply_status = relay_reply( t, FAKED_REPLY, branch, 487, &tmp_cd, 1); if(reply_status == RPS_ERROR || reply_status == RPS_TGONE) { + LM_DBG("skip sending cancel - reply status: %d\n", + reply_status); return -1; } + LM_DBG("skip sending cancel - flags: " + "F_CANCEL_B_FAKE_REPLY\n"); return 0; /* should be inactive after the 487 */ } /* do nothing, just wait for the final timeout */ + LM_DBG("skip sending cancel - wait for the final timeout\n"); return 1; } } _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
