Module: kamailio
Branch: master
Commit: 9a3b5d8c017f4de6a647184b0a1c464de9671b74
URL:
https://github.com/kamailio/kamailio/commit/9a3b5d8c017f4de6a647184b0a1c464…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-14T20:18:39+02:00
core: fixed use of flags-based protocol detection
- wrong field was used due to c&p
---
Modified: src/core/parser/msg_parser.h
---
Diff:
https://github.com/kamailio/kamailio/commit/9a3b5d8c017f4de6a647184b0a1c464…
Patch:
https://github.com/kamailio/kamailio/commit/9a3b5d8c017f4de6a647184b0a1c464…
---
diff --git a/src/core/parser/msg_parser.h b/src/core/parser/msg_parser.h
index 1abc042e28..61d9ac6185 100644
--- a/src/core/parser/msg_parser.h
+++ b/src/core/parser/msg_parser.h
@@ -145,22 +145,22 @@ if ( (*tmp==(firstchar) || *tmp==((firstchar) | 32)) &&
\
/* sip request */
#define IS_SIP(req) \
(((req)->first_line.type == SIP_REQUEST) && \
- ((req)->first_line.type & FLINE_FLAG_PROTO_SIP))
+ ((req)->first_line.flags & FLINE_FLAG_PROTO_SIP))
/* sip reply */
#define IS_SIP_REPLY(rpl) \
(((rpl)->first_line.type == SIP_REPLY) && \
- ((rpl)->first_line.type & FLINE_FLAG_PROTO_SIP))
+ ((rpl)->first_line.flags & FLINE_FLAG_PROTO_SIP))
/* http request */
#define IS_HTTP(req) \
(((req)->first_line.type == SIP_REQUEST) && \
- ((req)->first_line.type & FLINE_FLAG_PROTO_HTTP))
+ ((req)->first_line.flags & FLINE_FLAG_PROTO_HTTP))
/* http reply */
#define IS_HTTP_REPLY(rpl) \
(((rpl)->first_line.type == SIP_REPLY) && \
- ((rpl)->first_line.type & FLINE_FLAG_PROTO_HTTP))
+ ((rpl)->first_line.flags & FLINE_FLAG_PROTO_HTTP))
/*! \brief
* Return a URI to which the message should be really sent (not what should