浏览代码

cnxcc: remove useless warn messages

if the cid is not equal, an error message is going to be thrown.
Add more info in the later debug message.

(cherry picked from commit d6361c2e501cd9c08319f40897d765d1de1b1a32)
(cherry picked from commit 147e5dd582dc8e4a00e1ef5868cf2eb18c0c4dd0)
Victor Seva 5 年之前
父节点
当前提交
6ebb3c5d3d
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/modules/cnxcc/cnxcc_mod.c

+ 1 - 5
src/modules/cnxcc/cnxcc_mod.c

@@ -1511,10 +1511,6 @@ static int __add_call_by_cid(str *cid, call_t *call, credit_type_t type)
 			return -1;
 		}
 
-		LM_WARN("value cid: len=%d | value [%.*s]", value->sip_data.callid.len,
-				value->sip_data.callid.len, value->sip_data.callid.s);
-		LM_WARN("added cid: len=%d | value [%.*s]", cid->len, cid->len, cid->s);
-
 		if(value->sip_data.callid.len != cid->len
 				|| strncasecmp(value->sip_data.callid.s, cid->s, cid->len)
 						   != 0) {
@@ -1525,7 +1521,7 @@ static int __add_call_by_cid(str *cid, call_t *call, credit_type_t type)
 			return -1;
 		}
 
-		LM_DBG("CID already present\n");
+		LM_DBG("CID[%.*s] already present\n", cid->len, cid->s);
 		return 0;
 	}