Module: kamailio
Branch: 5.0
Commit: 1ce6019d4296603f701231cf55b090e22a137e0f
URL:
https://github.com/kamailio/kamailio/commit/1ce6019d4296603f701231cf55b090e…
Author: sergey-vb <sergey.v.basov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-05-08T20:56:13+02:00
topos: correct order of Route header after restoring from b_rr
- fixes routing with a chain of sip proxies
- GH #1124
(cherry picked from commit 98d1cf0454faa8f904d8bc08c73c70dc7b15de61)
---
Modified: src/modules/topos/tps_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1ce6019d4296603f701231cf55b090e…
Patch:
https://github.com/kamailio/kamailio/commit/1ce6019d4296603f701231cf55b090e…
---
diff --git a/src/modules/topos/tps_msg.c b/src/modules/topos/tps_msg.c
index 462dedd..bff2b2a 100644
--- a/src/modules/topos/tps_msg.c
+++ b/src/modules/topos/tps_msg.c
@@ -789,7 +789,7 @@ int tps_request_received(sip_msg_t *msg, int dialog)
return -1;
}
} else {
- if(tps_reappend_route(msg, &stsd, &stsd.b_rr, 0)<0) {
+ if(tps_reappend_route(msg, &stsd, &stsd.b_rr, 1)<0) {
LM_ERR("failed to reappend b-route\n");
return -1;
}