Module: kamailio
Branch: master
Commit: 0920aa1a27565bc52fd1ff9f4b9fc31dbd0d2a75
URL:
https://github.com/kamailio/kamailio/commit/0920aa1a27565bc52fd1ff9f4b9fc31…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-11-04T09:28:23+01:00
secsipid: debug message if identity header is not found
---
Modified: src/modules/secsipid/secsipid_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0920aa1a27565bc52fd1ff9f4b9fc31…
Patch:
https://github.com/kamailio/kamailio/commit/0920aa1a27565bc52fd1ff9f4b9fc31…
---
diff --git a/src/modules/secsipid/secsipid_mod.c b/src/modules/secsipid/secsipid_mod.c
index 96f01487a3..1676c37c9a 100644
--- a/src/modules/secsipid/secsipid_mod.c
+++ b/src/modules/secsipid/secsipid_mod.c
@@ -251,6 +251,10 @@ static int ki_secsipid_check_identity(sip_msg_t *msg, str *keypath)
}
}
+ if(ibody.len==0) {
+ LM_DBG("identity header not found\n");
+ }
+
LM_DBG("identity check: failed\n");
return ret;
}
@@ -301,6 +305,10 @@ static int ki_secsipid_check_identity_pubkey(sip_msg_t *msg, str
*keyval)
}
}
+ if(ibody.len==0) {
+ LM_DBG("identity header not found\n");
+ }
+
LM_DBG("identity check: failed\n");
return ret;
}