Browse code

core, lib, modules: updated include paths for header files

Daniel-Constantin Mierla authored on 07/12/2016 11:07:22
Showing 1 changed files
... ...
@@ -21,8 +21,8 @@
21 21
  * 
22 22
  */
23 23
 
24
-#include "../../data_lump.h"
25
-#include "../../parser/msg_parser.h"	/* struct sip_msg */
24
+#include "../../core/data_lump.h"
25
+#include "../../core/parser/msg_parser.h"	/* struct sip_msg */
26 26
 
27 27
 #ifndef _SIPT_SDP_MANGLE_
28 28
 #define _SIPT_SDP_MANGLE_
Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,41 @@
1
+/*
2
+ *
3
+ * Copyright (C) 2013 Voxbone SA
4
+ *
5
+ * This file is part of SIP-Router, a free SIP server.
6
+ *
7
+ * SIP-Router is free software; you can redistribute it and/or modify
8
+ * it under the terms of the GNU General Public License as published by
9
+ * the Free Software Foundation; either version 2 of the License, or
10
+ * (at your option) any later version
11
+ *
12
+ * SIP-Router is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+ * GNU General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU General Public License 
18
+ * along with this program; if not, write to the Free Software 
19
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20
+ *
21
+ * 
22
+ */
23
+
24
+#include "../../data_lump.h"
25
+#include "../../parser/msg_parser.h"	/* struct sip_msg */
26
+
27
+#ifndef _SIPT_SDP_MANGLE_
28
+#define _SIPT_SDP_MANGLE_
29
+
30
+
31
+struct sdp_mangler
32
+{
33
+	struct sip_msg *msg;
34
+	int body_offset;
35
+};
36
+
37
+
38
+int replace_body_segment(struct sdp_mangler * mangler, int offset, int len, unsigned char * new_data, int new_len);
39
+int add_body_segment(struct sdp_mangler * mangler, int offset, unsigned char * new_data, int new_len);
40
+
41
+#endif