Module: sip-router Branch: master Commit: 8b5212639540cb5cc85e648fb2e59d43714fecdb URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8b521263...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Wed May 6 20:53:56 2009 +0200
core: PUBLISH and REFER recognized by first line parser
- still duplicity of getting the method - parse_metod() and macro by parsing first line
---
parser/parse_fline.c | 2 ++ parser/parse_fline.h | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/parser/parse_fline.c b/parser/parse_fline.c index 81b235f..f5fb400 100644 --- a/parser/parse_fline.c +++ b/parser/parse_fline.c @@ -127,6 +127,8 @@ char* parse_first_line(char* buffer, unsigned int len, struct msg_start * fl) else IFISMETHOD( OPTIONS, 'O') else IFISMETHOD( PRACK, 'P') else IFISMETHOD( UPDATE, 'U') + else IFISMETHOD( REFER, 'R') + else IFISMETHOD( PUBLISH, 'P') /* if you want to add another method XXX, include METHOD_XXX in H-file (this is the value which you will take later in processing and define XXX_LEN as length of method name; diff --git a/parser/parse_fline.h b/parser/parse_fline.h index aae71a4..8e581b4 100644 --- a/parser/parse_fline.h +++ b/parser/parse_fline.h @@ -62,6 +62,8 @@ #define OPTIONS_LEN 7 #define PRACK_LEN 5 #define UPDATE_LEN 6 +#define REFER_LEN 5 +#define PUBLISH_LEN 7
struct msg_start { int type; /* Type of the Message - Request/Response */