Browse code

core: PUBLISH and REFER recognized by first line parser

- still duplicity of getting the method - parse_metod() and macro by
parsing first line

Daniel-Constantin Mierla authored on 06/05/2009 18:53:56
Showing 2 changed files
... ...
@@ -127,6 +127,8 @@ char* parse_first_line(char* buffer, unsigned int len, struct msg_start * fl)
127 127
 	else IFISMETHOD( OPTIONS, 'O')
128 128
 	else IFISMETHOD( PRACK, 'P')
129 129
 	else IFISMETHOD( UPDATE, 'U')
130
+	else IFISMETHOD( REFER, 'R')
131
+	else IFISMETHOD( PUBLISH, 'P')
130 132
 	/* if you want to add another method XXX, include METHOD_XXX in
131 133
            H-file (this is the value which you will take later in
132 134
            processing and define XXX_LEN as length of method name;
... ...
@@ -62,6 +62,8 @@
62 62
 #define OPTIONS_LEN 7
63 63
 #define PRACK_LEN 5
64 64
 #define UPDATE_LEN 6
65
+#define REFER_LEN 5
66
+#define PUBLISH_LEN 7
65 67
 
66 68
 struct msg_start {
67 69
 	int type;					/* Type of the Message - Request/Response */