Module: kamailio Branch: master Commit: 4fe95ab7db7f3fca83578bb7e2b2f478828793d3 URL: https://github.com/kamailio/kamailio/commit/4fe95ab7db7f3fca83578bb7e2b2f478828793d3
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2018-06-04T08:24:29+02:00 core: parser - assign ids for more methods - KDMQ and HTTP method types GET, POST, PUT and DELETE --- Modified: src/core/parser/msg_parser.h Modified: src/core/parser/parse_methods.c --- Diff: https://github.com/kamailio/kamailio/commit/4fe95ab7db7f3fca83578bb7e2b2f478828793d3.diff Patch: https://github.com/kamailio/kamailio/commit/4fe95ab7db7f3fca83578bb7e2b2f478828793d3.patch --- diff --git a/src/core/parser/msg_parser.h b/src/core/parser/msg_parser.h index 9d9d73a36e..5922cfc1cc 100644 --- a/src/core/parser/msg_parser.h +++ b/src/core/parser/msg_parser.h @@ -74,7 +74,12 @@ typedef enum request_method { METHOD_UPDATE=2048, /*!< 2048 - 2^11 */ METHOD_REFER=4096, /*!< 4096 - 2^12 */ METHOD_PUBLISH=8192, /*!< 8192 - 2^13 */ - METHOD_OTHER=16384 /*!< 16384 - 2^14 */ + METHOD_KDMQ=16384, /*!< 16384 - 2^14 */ + METHOD_GET=32768, /*!< 32768 - 2^15 */ + METHOD_POST=65536, /*!< 65536 - 2^16 */ + METHOD_PUT=131072, /*!< 131072 - 2^17 */ + METHOD_DELETE=262144, /*!< 262144 - 2^18 */ + METHOD_OTHER=524288 /*!< 524288 - 2^19 */ } request_method_t; #define FL_FORCE_RPORT (1 << 0) /*!< force rport */ diff --git a/src/core/parser/parse_methods.c b/src/core/parser/parse_methods.c index de36d602c1..5823a48a10 100644 --- a/src/core/parser/parse_methods.c +++ b/src/core/parser/parse_methods.c @@ -65,7 +65,7 @@ int parse_method_name(const str* const s, enum request_method* const method) } switch ((s->s)[0]) { - /* ordered after probability of aparition on a normal proxy */ + /* ordered after probability of apparition on a normal proxy */ case 'R': case 'r': if (likely((s->len == 8) && _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
