Module: kamailio
Branch: 5.0
Commit: c706b93ec3790f705f86084e9c5ca768935febb6
URL:
https://github.com/kamailio/kamailio/commit/c706b93ec3790f705f86084e9c5ca76…
Author: sergey-vb <sergey.v.basov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-20T13:38:31+02:00
topos: fix incorrect contact in 183 and 200 OK responces
When using topos, Kamailio does not set correct contact in 183 progres and 200 OK.
But for INVITE and Bye contacts are correct.
This modification seems fix it.
(cherry picked from commit 38d4fb46b2bd41d77facc18383bac6a760d8967e)
---
Modified: src/modules/topos/tps_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c706b93ec3790f705f86084e9c5ca76…
Patch:
https://github.com/kamailio/kamailio/commit/c706b93ec3790f705f86084e9c5ca76…
---
diff --git a/src/modules/topos/tps_msg.c b/src/modules/topos/tps_msg.c
index 014ffc1..41dcd90 100644
--- a/src/modules/topos/tps_msg.c
+++ b/src/modules/topos/tps_msg.c
@@ -1016,7 +1016,7 @@ int tps_response_sent(sip_msg_t *msg)
tps_remove_headers(msg, HDR_RECORDROUTE_T);
tps_remove_headers(msg, HDR_CONTACT_T);
- if(direction==TPS_DIR_UPSTREAM) {
+ if(direction==TPS_DIR_DOWNSTREAM) {
tps_reinsert_contact(msg, &stsd, &stsd.as_contact);
} else {
tps_reinsert_contact(msg, &stsd, &stsd.bs_contact);