浏览代码

Merge pull request #1081 from sergey-vb/topos-fix-02

topos: fix incorrect contact in 183 and 200 OK responces
Daniel-Constantin Mierla 8 年之前
父节点
当前提交
2cab97ec21
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/topos/tps_msg.c

+ 1 - 1
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);