Skip to content

Commit

Permalink
topos: fix incorrect contact in 183 and 200 OK responces
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sergey-vb committed Apr 20, 2017
1 parent 8ad48d9 commit 38d4fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/topos/tps_msg.c
Expand Up @@ -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);
Expand Down

0 comments on commit 38d4fb4

Please sign in to comment.