1 | 1 |
similarity index 96% |
2 | 2 |
rename from lib/kcore/faked_msg.c |
3 | 3 |
rename to fmsg.c |
... | ... |
@@ -24,11 +24,11 @@ |
24 | 24 |
* Module: \ref libkcore |
25 | 25 |
*/ |
26 | 26 |
|
27 |
-#include "../../dprint.h" |
|
28 |
-#include "../../globals.h" |
|
29 |
-#include "../../dset.h" |
|
27 |
+#include "dprint.h" |
|
28 |
+#include "globals.h" |
|
29 |
+#include "dset.h" |
|
30 | 30 |
|
31 |
-#include "faked_msg.h" |
|
31 |
+#include "fmsg.h" |
|
32 | 32 |
|
33 | 33 |
#define FAKED_SIP_MSG "OPTIONS sip:you@kamailio.org SIP/2.0\r\nVia: SIP/2.0/UDP 127.0.0.1\r\nFrom: <you@kamailio.org>;tag=123\r\nTo: <you@kamailio.org>\r\nCall-ID: 123\r\nCSeq: 1 OPTIONS\r\nContent-Length: 0\r\n\r\n" |
34 | 34 |
#define FAKED_SIP_MSG_LEN (sizeof(FAKED_SIP_MSG)-1) |
35 | 35 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,31 @@ |
1 |
+/** |
|
2 |
+ * |
|
3 |
+ * Copyright (C) 2009 Daniel-Constantin Mierla (asipto.com) |
|
4 |
+ * |
|
5 |
+ * This file is part of kamailio, a free SIP server. |
|
6 |
+ * |
|
7 |
+ * kamailio 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 |
+ * kamailio 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 |
+#ifndef _FMSG_H_ |
|
23 |
+#define _FMSG_H_ |
|
24 |
+ |
|
25 |
+#include "parser/msg_parser.h" |
|
26 |
+ |
|
27 |
+int faked_msg_init(void); |
|
28 |
+sip_msg_t* faked_msg_next(void); |
|
29 |
+sip_msg_t* faked_msg_get_next(void); |
|
30 |
+ |
|
31 |
+#endif |