瀏覽代碼

topos: proper condition to detect 3xx redirect for contact updates

- GH #1720
Daniel-Constantin Mierla 6 年之前
父節點
當前提交
1f02ee6295
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/topos/tps_msg.c

+ 2 - 2
src/modules/topos/tps_msg.c

@@ -1077,8 +1077,8 @@ int tps_response_sent(sip_msg_t *msg)
 	tps_remove_headers(msg, HDR_RECORDROUTE_T);
 
 	/* keep contact without updates for redirect responses sent out */
-	if(msg->first_line.u.reply.statuscode<300
-			|| msg->first_line.u.reply.statuscode>=400) {
+	if(msg->first_line.u.reply.statuscode>=300
+			&& msg->first_line.u.reply.statuscode<400) {
 		contact_keep = 1;
 	}
 	if(contact_keep==0 && msg->first_line.u.reply.statuscode>100