Module: kamailio
Branch: master
Commit: 98d1cf0454faa8f904d8bc08c73c70dc7b15de61
URL: 
https://github.com/kamailio/kamailio/commit/98d1cf0454faa8f904d8bc08c73c70dc7b15de61

Author: sergey-vb <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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/98d1cf0454faa8f904d8bc08c73c70dc7b15de61.diff
Patch: 
https://github.com/kamailio/kamailio/commit/98d1cf0454faa8f904d8bc08c73c70dc7b15de61.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;
                }


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to