[sr-dev] git:5.3:147e5dd5: cnxcc: remove useless warn messages

Victor Seva linuxmaniac at torreviejawireless.org
Mon Jun 29 18:36:04 CEST 2020


Module: kamailio
Branch: 5.3
Commit: 147e5dd582dc8e4a00e1ef5868cf2eb18c0c4dd0
URL: https://github.com/kamailio/kamailio/commit/147e5dd582dc8e4a00e1ef5868cf2eb18c0c4dd0

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2020-06-29T18:35:28+02:00

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)

---

Modified: src/modules/cnxcc/cnxcc_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/147e5dd582dc8e4a00e1ef5868cf2eb18c0c4dd0.diff
Patch: https://github.com/kamailio/kamailio/commit/147e5dd582dc8e4a00e1ef5868cf2eb18c0c4dd0.patch

---

diff --git a/src/modules/cnxcc/cnxcc_mod.c b/src/modules/cnxcc/cnxcc_mod.c
index 2a6b0f8cf8..c2b6c1f567 100644
--- a/src/modules/cnxcc/cnxcc_mod.c
+++ b/src/modules/cnxcc/cnxcc_mod.c
@@ -1430,10 +1430,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) {
@@ -1444,7 +1440,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;
 	}
 




More information about the sr-dev mailing list