Kaynağa Gözat

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

Jan Janak 19 yıl önce
ebeveyn
işleme
394abcfdc1
3 değiştirilmiş dosya ile 5 ekleme ve 1096 silme
  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 */
 /* 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, 
 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_RPORT 1   /* force rport */
 #define FL_FORCE_ACTIVE 2  /* force active SDP */
 #define FL_FORCE_ACTIVE 2  /* force active SDP */

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 1094
parser/parse_fline.c


+ 3 - 1
parser/parse_fline.h

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

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor