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
deleted file mode 100644
... ...
@@ -1,83 +0,0 @@
1
-/*
2
- * Copyright (C) 2005 iptelorg GmbH
3
- *
4
- * This file is part of Kamailio, a free SIP server.
5
- *
6
- * Kamailio is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version
10
- *
11
- * Kamailio is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License 
17
- * along with this program; if not, write to the Free Software 
18
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
- *
20
- */
21
-
22
-#ifndef _ID_H
23
-#define _ID_H
24
-
25
-#include "str.h"
26
-#include "usr_avp.h"
27
-#include "parser/msg_parser.h"
28
-
29
-
30
-/*
31
- * Set From UID
32
- */
33
-int set_from_uid(str* uid);
34
-
35
-
36
-/*
37
- * Get From UID
38
- */
39
-int get_from_uid(str* uid, struct sip_msg* msg);
40
-
41
-/*
42
- * Set To UID
43
- */
44
-int set_to_uid(str* uid);
45
-
46
-
47
-/*
48
- * Ge To UID
49
- */
50
-int get_to_uid(str* uid, struct sip_msg* msg);
51
-
52
-
53
-/** Retrieves the UID of the callee. This function retrieves the UID (unique
54
- * identifier) of the party being called. The function first searches the list
55
- * of available attributes and if it finds an attribute with name "uid" then
56
- * the value of the attribute is returned.  If no such attribute can be found
57
- * then the function retrieves the username from To header field of REGISTER
58
- * requests (because that is the party being registered), or the username from
59
- * the Reqeuest-URI of other requests. The username is then used as the UID
60
- * string identifying the callee. If no attribute with the UID was found and
61
- * the function successfully retrieved the UID from the SIP message then, in
62
- * addition to storing the result in the first parameter, the function will
63
- * also create the attribute named "uid" which will contain the UID. The
64
- * function is not reentrant because it uses an internal static buffer to
65
- * store the result.
66
- * @param uid A pointer to ::str variable where the result will be stored, the
67
- *            pointer in the variable will be updated to point to a static
68
- *            buffer in the function.  
69
- * @param msg The SIP message being processed.  
70
- * @return 1 is returned when the attribute with UID exists and it is used, 0
71
- *         is returned when the function retrieved the UID from the SIP
72
- *         message and created the attribute, -1 is returned on error.
73
- */
74
-int get_to_did(str* did, struct sip_msg* msg);
75
-
76
-
77
-/*
78
- * Return current From domain id
79
- */
80
-int get_from_did(str* did, struct sip_msg* msg);
81
-
82
-
83
-#endif /* _ID_H */
Browse code

core : Update include files - delete IDs, update doxygen, delete history

Olle E. Johansson authored on 03/01/2015 10:55:48
Showing 1 changed files
... ...
@@ -1,21 +1,14 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2005 iptelorg GmbH
5 3
  *
6
- * This file is part of ser, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
7 5
  *
8
- * ser is free software; you can redistribute it and/or modify
6
+ * Kamailio is free software; you can redistribute it and/or modify
9 7
  * it under the terms of the GNU General Public License as published by
10 8
  * the Free Software Foundation; either version 2 of the License, or
11 9
  * (at your option) any later version
12 10
  *
13
- * For a license to use the ser software under conditions
14
- * other than those described here, or to purchase support for this
15
- * software, please contact iptel.org by e-mail at the following addresses:
16
- *    info@iptel.org
17
- *
18
- * ser is distributed in the hope that it will be useful,
11
+ * Kamailio is distributed in the hope that it will be useful,
19 12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 14
  * GNU General Public License for more details.
Browse code

all: updated FSF address in GPL text

Anthony Messina authored on 04/07/2014 09:36:37 • Daniel-Constantin Mierla committed on 04/07/2014 09:37:36
Showing 1 changed files
... ...
@@ -22,7 +22,7 @@
22 22
  *
23 23
  * You should have received a copy of the GNU General Public License 
24 24
  * along with this program; if not, write to the Free Software 
25
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26 26
  *
27 27
  */
28 28
 
Browse code

- doxygen comment moved to the header file

Jan Janak authored on 02/02/2008 12:26:59
Showing 1 changed files
... ...
@@ -57,8 +57,26 @@ int set_to_uid(str* uid);
57 57
 int get_to_uid(str* uid, struct sip_msg* msg);
58 58
 
59 59
 
60
-/*
61
- * Return current To domain id
60
+/** Retrieves the UID of the callee. This function retrieves the UID (unique
61
+ * identifier) of the party being called. The function first searches the list
62
+ * of available attributes and if it finds an attribute with name "uid" then
63
+ * the value of the attribute is returned.  If no such attribute can be found
64
+ * then the function retrieves the username from To header field of REGISTER
65
+ * requests (because that is the party being registered), or the username from
66
+ * the Reqeuest-URI of other requests. The username is then used as the UID
67
+ * string identifying the callee. If no attribute with the UID was found and
68
+ * the function successfully retrieved the UID from the SIP message then, in
69
+ * addition to storing the result in the first parameter, the function will
70
+ * also create the attribute named "uid" which will contain the UID. The
71
+ * function is not reentrant because it uses an internal static buffer to
72
+ * store the result.
73
+ * @param uid A pointer to ::str variable where the result will be stored, the
74
+ *            pointer in the variable will be updated to point to a static
75
+ *            buffer in the function.  
76
+ * @param msg The SIP message being processed.  
77
+ * @return 1 is returned when the attribute with UID exists and it is used, 0
78
+ *         is returned when the function retrieved the UID from the SIP
79
+ *         message and created the attribute, -1 is returned on error.
62 80
  */
63 81
 int get_to_did(str* did, struct sip_msg* msg);
64 82
 
Browse code

- set_{to,from}_uid return the return value of add_avp, patch provided by Bogdan Pintea closes SER-121

Jan Janak authored on 22/11/2006 23:57:47
Showing 1 changed files
... ...
@@ -37,7 +37,7 @@
37 37
 /*
38 38
  * Set From UID
39 39
  */
40
-void set_from_uid(str* uid);
40
+int set_from_uid(str* uid);
41 41
 
42 42
 
43 43
 /*
... ...
@@ -48,7 +48,7 @@ int get_from_uid(str* uid, struct sip_msg* msg);
48 48
 /*
49 49
  * Set To UID
50 50
  */
51
-void set_to_uid(str* uid);
51
+int set_to_uid(str* uid);
52 52
 
53 53
 
54 54
 /*
Browse code

- support for from and to attributes

Jan Janak authored on 24/11/2005 15:04:41
Showing 1 changed files
... ...
@@ -58,9 +58,15 @@ int get_to_uid(str* uid, struct sip_msg* msg);
58 58
 
59 59
 
60 60
 /*
61
- * Return the current domain id
61
+ * Return current To domain id
62 62
  */
63
-int get_did(str* did, struct sip_msg* msg);
63
+int get_to_did(str* did, struct sip_msg* msg);
64
+
65
+
66
+/*
67
+ * Return current From domain id
68
+ */
69
+int get_from_did(str* did, struct sip_msg* msg);
64 70
 
65 71
 
66 72
 #endif /* _ID_H */
Browse code

- extract uid from message when not available.

Jan Janak authored on 20/11/2005 23:55:05
Showing 1 changed files
... ...
@@ -31,6 +31,7 @@
31 31
 
32 32
 #include "str.h"
33 33
 #include "usr_avp.h"
34
+#include "parser/msg_parser.h"
34 35
 
35 36
 
36 37
 /*
... ...
@@ -40,9 +41,9 @@ void set_from_uid(str* uid);
40 41
 
41 42
 
42 43
 /*
43
- * Set From UID
44
+ * Get From UID
44 45
  */
45
-int get_from_uid(str* uid);
46
+int get_from_uid(str* uid, struct sip_msg* msg);
46 47
 
47 48
 /*
48 49
  * Set To UID
... ...
@@ -51,15 +52,15 @@ void set_to_uid(str* uid);
51 52
 
52 53
 
53 54
 /*
54
- * Set To UID
55
+ * Ge To UID
55 56
  */
56
-int set_to_uid(str* uid);
57
+int get_to_uid(str* uid, struct sip_msg* msg);
57 58
 
58 59
 
59 60
 /*
60 61
  * Return the current domain id
61 62
  */
62
-int get_did(str* did);
63
+int get_did(str* did, struct sip_msg* msg);
63 64
 
64 65
 
65 66
 #endif /* _ID_H */
Browse code

- uid/did manipulation

Jan Janak authored on 19/11/2005 17:05:03
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,65 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Copyright (C) 2005 iptelorg GmbH
5
+ *
6
+ * This file is part of ser, a free SIP server.
7
+ *
8
+ * ser is free software; you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation; either version 2 of the License, or
11
+ * (at your option) any later version
12
+ *
13
+ * For a license to use the ser software under conditions
14
+ * other than those described here, or to purchase support for this
15
+ * software, please contact iptel.org by e-mail at the following addresses:
16
+ *    info@iptel.org
17
+ *
18
+ * ser is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
+ * GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU General Public License 
24
+ * along with this program; if not, write to the Free Software 
25
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
+ *
27
+ */
28
+
29
+#ifndef _ID_H
30
+#define _ID_H
31
+
32
+#include "str.h"
33
+#include "usr_avp.h"
34
+
35
+
36
+/*
37
+ * Set From UID
38
+ */
39
+void set_from_uid(str* uid);
40
+
41
+
42
+/*
43
+ * Set From UID
44
+ */
45
+int get_from_uid(str* uid);
46
+
47
+/*
48
+ * Set To UID
49
+ */
50
+void set_to_uid(str* uid);
51
+
52
+
53
+/*
54
+ * Set To UID
55
+ */
56
+int set_to_uid(str* uid);
57
+
58
+
59
+/*
60
+ * Return the current domain id
61
+ */
62
+int get_did(str* did);
63
+
64
+
65
+#endif /* _ID_H */