Module: kamailio Branch: master Commit: 4b6226e3799cb6862c5cf07caa8083c8dfcf698c URL: https://github.com/kamailio/kamailio/commit/4b6226e3799cb6862c5cf07caa8083c8dfcf698c
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-05-29T11:05:31+02:00 tm: print reply status for cancelling branch in debug messages --- Modified: src/modules/tm/t_cancel.c --- Diff: https://github.com/kamailio/kamailio/commit/4b6226e3799cb6862c5cf07caa8083c8dfcf698c.diff Patch: https://github.com/kamailio/kamailio/commit/4b6226e3799cb6862c5cf07caa8083c8dfcf698c.patch --- diff --git a/src/modules/tm/t_cancel.c b/src/modules/tm/t_cancel.c index 2f9ae7efeca..aa276358d97 100644 --- a/src/modules/tm/t_cancel.c +++ b/src/modules/tm/t_cancel.c @@ -216,7 +216,7 @@ int cancel_branch(struct cell *t, int branch, sip_msg_t *cancel_msg, int ret; struct cancel_info tmp_cd; void *pcbuf; - int reply_status; + int reply_status = 0; int rt, backup_rt; struct run_act_ctx ctx; sip_msg_t msg; @@ -285,11 +285,14 @@ int cancel_branch(struct cell *t, int branch, sip_msg_t *cancel_msg, return -1; } LM_DBG("skip sending cancel - flags: " - "F_CANCEL_B_FAKE_REPLY\n"); + "F_CANCEL_B_FAKE_REPLY (reply status: %d)\n", + reply_status); 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"); + LM_DBG("skip sending cancel - wait for the final timeout" + " (last received: %d reply status: %d)\n", + t->uac[branch].last_received, reply_status); 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!
