Module: kamailio
Branch: master
Commit: 9dab8303a96614fd74efff6add359a23713642a5
URL:
https://github.com/kamailio/kamailio/commit/9dab8303a96614fd74efff6add359a2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-07-15T17:24:14+02:00
siputils: log method ids on mismatch for options_reply()
---
Modified: src/modules/siputils/options.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9dab8303a96614fd74efff6add359a2…
Patch:
https://github.com/kamailio/kamailio/commit/9dab8303a96614fd74efff6add359a2…
---
diff --git a/src/modules/siputils/options.c b/src/modules/siputils/options.c
index 674dbfec70..f5cf61ee16 100644
--- a/src/modules/siputils/options.c
+++ b/src/modules/siputils/options.c
@@ -47,7 +47,8 @@ int ki_opt_reply(struct sip_msg* _msg) {
/* check if it is called for an OPTIONS request */
if (_msg->REQ_METHOD!=METHOD_OPTIONS) {
- LM_ERR("called for non-OPTIONS request\n");
+ LM_ERR("called for non-OPTIONS request (%d!=%d)\n",
+ _msg->REQ_METHOD, METHOD_OPTIONS);
return -1;
}
if(_msg->parsed_uri_ok==0 && parse_sip_msg_uri(_msg)<0)