[sr-dev] git:5.0:1ce6019d: topos: correct order of Route header after restoring from b_rr
Daniel-Constantin Mierla
miconda at gmail.com
Mon May 8 20:56:37 CEST 2017
Module: kamailio
Branch: 5.0
Commit: 1ce6019d4296603f701231cf55b090e22a137e0f
URL: https://github.com/kamailio/kamailio/commit/1ce6019d4296603f701231cf55b090e22a137e0f
Author: sergey-vb <sergey.v.basov at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/1ce6019d4296603f701231cf55b090e22a137e0f.diff
Patch: https://github.com/kamailio/kamailio/commit/1ce6019d4296603f701231cf55b090e22a137e0f.patch
---
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;
}
More information about the sr-dev
mailing list