siputils: log method ids on mismatch for options_reply()
authorDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 15 Jul 2019 15:24:14 +0000 (17:24 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 15 Jul 2019 15:24:14 +0000 (17:24 +0200)
src/modules/siputils/options.c

index 674dbfe..f5cf61e 100644 (file)
@@ -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)