浏览代码

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

Jan Janak 19 年之前
父节点
当前提交
394abcfdc1
共有 3 个文件被更改,包括 5 次插入1096 次删除
  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 */

文件差异内容过多而无法显示
+ 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 */

部分文件因为文件数量过多而无法显示