浏览代码

K. compatibility members of the branch structure in dset.c

The structure now also contains the buffer and length variable
to store the path header and an unsigned int variable to store
branch flags.
Jan Janak 17 年之前
父节点
当前提交
c5c2bcd6fe
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 2 0
      config.h
  2. 7 0
      dset.c

+ 2 - 0
config.h

@@ -70,6 +70,8 @@
 
 
 #define MAX_URI_SIZE 1024	/* used when rewriting URIs */
 #define MAX_URI_SIZE 1024	/* used when rewriting URIs */
 
 
+#define MAX_PATH_SIZE 256 /* Maximum length of path header buffer */
+
 #define MY_VIA "Via: SIP/2.0/UDP "
 #define MY_VIA "Via: SIP/2.0/UDP "
 #define MY_VIA_LEN (sizeof(MY_VIA) - 1)
 #define MY_VIA_LEN (sizeof(MY_VIA) - 1)
 
 

+ 7 - 0
dset.c

@@ -57,9 +57,16 @@ struct branch
 	char dst_uri[MAX_URI_SIZE];
 	char dst_uri[MAX_URI_SIZE];
 	unsigned int dst_uri_len;
 	unsigned int dst_uri_len;
 
 
+	/* Path set */
+	char path[MAX_PATH_SIZE];
+	unsigned int path_len;
+
 	int q; /* Preference of the contact among
 	int q; /* Preference of the contact among
 		* contact within the array */
 		* contact within the array */
 	struct socket_info* force_send_socket;
 	struct socket_info* force_send_socket;
+
+	/* Branch flags */
+	unsigned int flags;
 };
 };