Explorar o código

- support for REGISTER,SUBSCRIBE, and NOTIFY
- removed code not being used (cvs history should be enough)

Jan Janak %!s(int64=19) %!d(string=hai) anos
pai
achega
394abcfdc1
Modificáronse 3 ficheiros con 5 adicións e 1096 borrados
  1. 2 1
      parser/msg_parser.h
  2. 0 1094
      parser/parse_fline.c
  3. 3 1
      parser/parse_fline.h

+ 2 - 1
parser/msg_parser.h

@@ -67,7 +67,8 @@
 
 /* number methods as power of two to allow bitmap matching */
 enum request_method { METHOD_UNDEF=0, METHOD_INVITE=1, METHOD_CANCEL=2, METHOD_ACK=4, 
-	METHOD_BYE=8, METHOD_INFO=16, METHOD_OTHER=32 };
+	METHOD_BYE=8, METHOD_INFO=16, METHOD_REGISTER=32, METHOD_SUBSCRIBE=64,
+        METHOD_NOTIFY=128, METHOD_OTHER=256 };
 
 #define FL_FORCE_RPORT 1   /* force rport */
 #define FL_FORCE_ACTIVE 2  /* force active SDP */

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 1094
parser/parse_fline.c


+ 3 - 1
parser/parse_fline.h

@@ -55,7 +55,9 @@
 #define ACK_LEN 3
 #define BYE_LEN 3
 #define INFO_LEN 4
-
+#define REGISTER_LEN 8
+#define SUBSCRIBE_LEN 9
+#define NOTIFY_LEN 6
 
 struct msg_start {
 	int type;                         /* Type of the Message - Request/Response */

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio