Module: kamailio
Branch: master
Commit: 98d1cf0454faa8f904d8bc08c73c70dc7b15de61
URL:
https://github.com/kamailio/kamailio/commit/98d1cf0454faa8f904d8bc08c73c70d…
Author: sergey-vb <sergey.v.basov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-05-08T20:53:17+02:00
topos: correct order of Route header after restoring from b_rr
- fixes routing with a chain of sip proxies
- GH #1124
---
Modified: src/modules/topos/tps_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/98d1cf0454faa8f904d8bc08c73c70d…
Patch:
https://github.com/kamailio/kamailio/commit/98d1cf0454faa8f904d8bc08c73c70d…
---
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;
}