Module: kamailio Branch: master Commit: 9898c586095bd75cd31f0ca383ba0a347bfc4891 URL: https://github.com/kamailio/kamailio/commit/9898c586095bd75cd31f0ca383ba0a34...
Author: frederic frederic.gaisnon@mmtt.fr Committer: Henning Westerholt hw@gilawa.com Date: 2023-11-17T14:48:35+01:00
topos: BYE sent by caller before call was connected was badly managed regression introduced by patch 091dc9a76bcec5c8a4bc73e863ed10b1b9d76c92 topos: fix early-dialog b-side UPDATE requests routing (GH #3437)
---
Modified: src/modules/topos/tps_msg.c
---
Diff: https://github.com/kamailio/kamailio/commit/9898c586095bd75cd31f0ca383ba0a34... Patch: https://github.com/kamailio/kamailio/commit/9898c586095bd75cd31f0ca383ba0a34...
---
diff --git a/src/modules/topos/tps_msg.c b/src/modules/topos/tps_msg.c index 942629568b9..4d680e53f45 100644 --- a/src/modules/topos/tps_msg.c +++ b/src/modules/topos/tps_msg.c @@ -962,7 +962,7 @@ int tps_request_received(sip_msg_t *msg, int dialog) LM_DBG("use branch for routing information, request from direction " "%d\n", direction); - if(tps_reappend_route(msg, &stsd, &stsd.s_rr, 1) < 0) { + if(tps_reappend_route(msg, &stsd, &stsd.s_rr, (direction == TPS_DIR_UPSTREAM) ? 0 : 1) < 0) { LM_ERR("failed to reappend s-route\n"); return -1; }