Module: kamailio Branch: 5.3 Commit: 147e5dd582dc8e4a00e1ef5868cf2eb18c0c4dd0 URL: https://github.com/kamailio/kamailio/commit/147e5dd582dc8e4a00e1ef5868cf2eb1...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@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/147e5dd582dc8e4a00e1ef5868cf2eb1... Patch: https://github.com/kamailio/kamailio/commit/147e5dd582dc8e4a00e1ef5868cf2eb1...
---
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; }