Module: kamailio
Branch: master
Commit: 2cab97ec215fe5c52fabe8b417f247de3c857326
URL:
https://github.com/kamailio/kamailio/commit/2cab97ec215fe5c52fabe8b417f247d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2017-04-20T13:36:12+02:00
Merge pull request #1081 from sergey-vb/topos-fix-02
topos: fix incorrect contact in 183 and 200 OK responces
---
Modified: src/modules/topos/tps_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2cab97ec215fe5c52fabe8b417f247d…
Patch:
https://github.com/kamailio/kamailio/commit/2cab97ec215fe5c52fabe8b417f247d…
---
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);