Module: kamailio Branch: master Commit: 8a66803610f2c822f319899cd2bf8675615348bc URL: https://github.com/kamailio/kamailio/commit/8a66803610f2c822f319899cd2bf8675...
Author: Henning Westerholt hw@kamailio.org Committer: Henning Westerholt hw@kamailio.org Date: 2018-08-13T21:17:38+02:00
tmx: bug fix in cancel for current branches in helper, reported in GH #1620
---
Modified: src/modules/tmx/tmx_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/8a66803610f2c822f319899cd2bf8675... Patch: https://github.com/kamailio/kamailio/commit/8a66803610f2c822f319899cd2bf8675...
---
diff --git a/src/modules/tmx/tmx_mod.c b/src/modules/tmx/tmx_mod.c index 2a703362d6..cf7c1080da 100644 --- a/src/modules/tmx/tmx_mod.c +++ b/src/modules/tmx/tmx_mod.c @@ -321,6 +321,8 @@ static int t_cancel_branches_helper(sip_msg_t* msg, int n) if(tcx != NULL) idx = tcx->branch_index; init_cancel_info(&cancel_data); + /* tm function: prepare_to_cancel(struct cell *t, branch_bm_t *cancel_bm, + branch_bm_t skip_branches) */ switch(n) { case 1: /* prepare cancel for every branch except idx (others) */ @@ -332,6 +334,7 @@ static int t_cancel_branches_helper(sip_msg_t* msg, int n) if(msg->first_line.u.reply.statuscode>=200) break; cancel_data.cancel_bitmap = 1<<idx; + _tmx_tmb.prepare_to_cancel(t, &cancel_data.cancel_bitmap, 0); break; default: /* prepare cancel for all branches */