Browse code

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.

sergey-vb authored on 20/04/2017 11:11:15 • GitHub committed on 20/04/2017 11:11:15
Showing 1 changed files
... ...
@@ -1016,7 +1016,7 @@ int tps_response_sent(sip_msg_t *msg)
1016 1016
 	tps_remove_headers(msg, HDR_RECORDROUTE_T);
1017 1017
 	tps_remove_headers(msg, HDR_CONTACT_T);
1018 1018
 
1019
-	if(direction==TPS_DIR_UPSTREAM) {
1019
+	if(direction==TPS_DIR_DOWNSTREAM) {
1020 1020
 		tps_reinsert_contact(msg, &stsd, &stsd.as_contact);
1021 1021
 	} else {
1022 1022
 		tps_reinsert_contact(msg, &stsd, &stsd.bs_contact);