Module: kamailio Branch: master Commit: 38d4fb46b2bd41d77facc18383bac6a760d8967e URL: https://github.com/kamailio/kamailio/commit/38d4fb46b2bd41d77facc18383bac6a760d8967e
Author: sergey-vb <[email protected]> Committer: GitHub <[email protected]> Date: 2017-04-20T14:11:15+03: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. --- Modified: src/modules/topos/tps_msg.c --- Diff: https://github.com/kamailio/kamailio/commit/38d4fb46b2bd41d77facc18383bac6a760d8967e.diff Patch: https://github.com/kamailio/kamailio/commit/38d4fb46b2bd41d77facc18383bac6a760d8967e.patch --- 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); _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
