[sr-dev] [kamailio/kamailio] cancel_branch("this") not working (#1620)
arheops
notifications at github.com
Mon Aug 13 00:32:33 CEST 2018
Need add
_tmx_tmb.prepare_to_cancel(t, &cancel_data.cancel_bitmap, 0);
into function static int t_cancel_branches_helper(sip_msg_t* msg, int n)
at case of 2( "this")
proposed changes:
```
case 2:
/* prepare cancel for current branch (idx) */
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;
```
### Additional Information
kamailio version 4.* to 5.*
```
```
Without this it can't cancel "this" transaction.
Rare case due to low use of "this".
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1620
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180812/e49ddc79/attachment.html>
More information about the sr-dev
mailing list