Module: kamailio
Branch: master
Commit: d6361c2e501cd9c08319f40897d765d1de1b1a32
URL:
https://github.com/kamailio/kamailio/commit/d6361c2e501cd9c08319f40897d765d…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-06-29T18:31:37+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.
---
Modified: src/modules/cnxcc/cnxcc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d6361c2e501cd9c08319f40897d765d…
Patch:
https://github.com/kamailio/kamailio/commit/d6361c2e501cd9c08319f40897d765d…
---
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;
}