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,51 +0,0 @@
1
-/*
2
- * Copyright (C) 2001-2003 FhG Fokus
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
-/** @file
22
- * @brief Parser :: Parse URI's
23
- *
24
- * @ingroup parser
25
- */
26
-
27
-#ifndef PARSE_URI_H
28
-#define PARSE_URI_H
29
-
30
-/*
31
- * SIP URI parser
32
- */
33
-
34
-
35
-#include "../str.h"
36
-#include "../parser/msg_parser.h"
37
-
38
-extern str	s_sip, s_sips, s_tel, s_tels, s_urn;
39
-
40
-/* buf= pointer to begining of uri (sip:x@foo.bar:5060;a=b?h=i)
41
- * len= len of uri
42
- * returns: fills uri & returns <0 on error or 0 if ok 
43
- */
44
-int parse_uri(char *buf, int len, struct sip_uri* uri);
45
-int parse_sip_msg_uri(struct sip_msg* msg);
46
-int parse_orig_ruri(struct sip_msg* msg);
47
-int normalize_tel_user(char* res, str* src);
48
-void uri_type_to_str(uri_type type, str *s);
49
-void proto_type_to_str(unsigned short type, str *s);
50
-
51
-#endif /* PARSE_URI_H */
Browse code

core parser - remove svn ID, remove history, change "ser" => "Kamailio"

Olle E. Johansson authored on 18/01/2015 19:36:18
Showing 1 changed files
... ...
@@ -1,14 +1,14 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of ser, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6
- * ser is free software; you can redistribute it and/or modify
6
+ * Kamailio is free software; you can redistribute it and/or modify
7 7
  * it under the terms of the GNU General Public License as published by
8 8
  * the Free Software Foundation; either version 2 of the License, or
9 9
  * (at your option) any later version
10 10
  *
11
- * ser is distributed in the hope that it will be useful,
11
+ * Kamailio is distributed in the hope that it will be useful,
12 12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 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
... ...
@@ -15,7 +15,7 @@
15 15
  *
16 16
  * You should have received a copy of the GNU General Public License 
17 17
  * along with this program; if not, write to the Free Software 
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19 19
  */
20 20
 
21 21
 /** @file
Browse code

parser: remove old $Id$ docs header from subversion times, not usable anymore

Henning Westerholt authored on 05/07/2012 21:39:51
Showing 1 changed files
... ...
@@ -1,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2001-2003 FhG Fokus
5 3
  *
6 4
  * This file is part of ser, a free SIP server.
Browse code

parser/uri: support for URN

- uri parser has support for URNs (e.g. urn:service:sos.fire)
- t_relay does not break on RURI with URNs
- PVs are set as follows:
$ru= "urn:service:sos.fire"
$rz= "urn"
$rU= "service"
$rd= "sos.fire"
- refer to http://tools.ietf.org/html/draft-ietf-ecrit-framework-13#page-29
for SIP signaling requirements for SIP proxy servers.
- patch by Wolfgang Kampichler, closes FS#201

Daniel-Constantin Mierla authored on 08/02/2012 09:19:00
Showing 1 changed files
... ...
@@ -37,8 +37,7 @@
37 37
 #include "../str.h"
38 38
 #include "../parser/msg_parser.h"
39 39
 
40
-
41
-extern str	s_sip, s_sips, s_tel, s_tels;
40
+extern str	s_sip, s_sips, s_tel, s_tels, s_urn;
42 41
 
43 42
 /* buf= pointer to begining of uri (sip:x@foo.bar:5060;a=b?h=i)
44 43
  * len= len of uri
Browse code

Doxygen changes

oej authored on 25/10/2009 18:30:31
Showing 1 changed files
... ...
@@ -10,11 +10,6 @@
10 10
  * the Free Software Foundation; either version 2 of the License, or
11 11
  * (at your option) any later version
12 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 13
  * ser is distributed in the hope that it will be useful,
19 14
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 15
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
... ...
@@ -25,6 +20,11 @@
25 20
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 21
  */
27 22
 
23
+/** @file
24
+ * @brief Parser :: Parse URI's
25
+ *
26
+ * @ingroup parser
27
+ */
28 28
 
29 29
 #ifndef PARSE_URI_H
30 30
 #define PARSE_URI_H
Browse code

Strip, prefix, rewriteuser, ... all the SET_* actions preserve the original URI scheme unless the host name is rewritten. If the host name is set, then tel: and tels: URIs are converted to sip: or sips:, and the user=phone parameter is added.

A script function, userphone(), is introduced: It adds the "user=phone"
parameter to a sip: or sips: RURI if the param is not yet present.
(Does not change tel: and tels: URIs).

(Patch has been created with cooperation with Michal Matyska.)
Fixes SER-435.

Miklos Tirpak authored on 10/03/2009 16:26:35
Showing 1 changed files
... ...
@@ -38,6 +38,7 @@
38 38
 #include "../parser/msg_parser.h"
39 39
 
40 40
 
41
+extern str	s_sip, s_sips, s_tel, s_tels;
41 42
 
42 43
 /* buf= pointer to begining of uri (sip:x@foo.bar:5060;a=b?h=i)
43 44
  * len= len of uri
Browse code

- adding any_uri.transport select NOTE: if there is no transport parameter in the uri, it returns the default transport based on the uri type (sip/sips).

Michal Matyska authored on 15/02/2008 17:37:24
Showing 1 changed files
... ...
@@ -48,5 +48,6 @@ int parse_sip_msg_uri(struct sip_msg* msg);
48 48
 int parse_orig_ruri(struct sip_msg* msg);
49 49
 int normalize_tel_user(char* res, str* src);
50 50
 void uri_type_to_str(uri_type type, str *s);
51
+void proto_type_to_str(unsigned short type, str *s);
51 52
 
52 53
 #endif /* PARSE_URI_H */
Browse code

Tel uri and sip;user=phone uri polishing. Checks username for visual separators, fix handle params for user=phone. Select @{...}.uri.user returns normalized username, module writer needs check the uri->flag.

Michal Matyska authored on 01/03/2007 12:30:27
Showing 1 changed files
... ...
@@ -46,5 +46,7 @@
46 46
 int parse_uri(char *buf, int len, struct sip_uri* uri);
47 47
 int parse_sip_msg_uri(struct sip_msg* msg);
48 48
 int parse_orig_ruri(struct sip_msg* msg);
49
+int normalize_tel_user(char* res, str* src);
50
+void uri_type_to_str(uri_type type, str *s);
49 51
 
50 52
 #endif /* PARSE_URI_H */
Browse code

- Spelling checked

Jan Janak authored on 24/08/2004 09:01:24
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
Browse code

grand acc cleanup: all (core, tm, acc, serweb) but radius intergrated

Jiri Kuthan authored on 04/04/2003 03:21:58
Showing 1 changed files
... ...
@@ -45,5 +45,6 @@
45 45
  */
46 46
 int parse_uri(char *buf, int len, struct sip_uri* uri);
47 47
 int parse_sip_msg_uri(struct sip_msg* msg);
48
+int parse_orig_ruri(struct sip_msg* msg);
48 49
 
49 50
 #endif /* PARSE_URI_H */
Browse code

parse_uri cleanup: - It does no create copy of strings anymore - Fields are not zero terminated - Prototype of some low-level functions changed to accept str* instead of char*, that includes: mk_proxy, sip_resolvehost, str2ip, str2ip6, ip_addr2he - All modules updated (hopefully)

Jan Janak authored on 17/12/2002 18:14:32
Showing 1 changed files
... ...
@@ -46,6 +46,4 @@
46 46
 int parse_uri(char *buf, int len, struct sip_uri* uri);
47 47
 int parse_sip_msg_uri(struct sip_msg* msg);
48 48
 
49
-void free_uri(struct sip_uri* u);
50
-
51 49
 #endif /* PARSE_URI_H */
Browse code

GPLization banner introduced to *.[hc] files

Jiri Kuthan authored on 19/09/2002 12:23:52
Showing 1 changed files
... ...
@@ -1,7 +1,31 @@
1 1
 /*
2 2
  * $Id$
3
+ *
4
+ * Copyright (C) 2001-2003 Fhg Fokus
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
3 26
  */
4 27
 
28
+
5 29
 #ifndef PARSE_URI_H
6 30
 #define PARSE_URI_H
7 31
 
Browse code

- added myself==src_ip/dst_ip/uri condition - created parse_sip_msg_uri which puts the result in msg->parsed_uri & updates msg->parsed_rui_ok - changed default value of syn_branch to 1

Andrei Pelinescu-Onciul authored on 19/08/2002 11:51:31
Showing 1 changed files
... ...
@@ -11,15 +11,8 @@
11 11
 
12 12
 
13 13
 #include "../str.h"
14
+#include "../parser/msg_parser.h"
14 15
 
15
-struct sip_uri {
16
-	str user;     /* Username */
17
-	str passwd;   /* Password */
18
-	str host;     /* Host name */
19
-	str port;     /* Port number */
20
-	str params;   /* Parameters */
21
-	str headers;  
22
-};
23 16
 
24 17
 
25 18
 /* buf= pointer to begining of uri (sip:x@foo.bar:5060;a=b?h=i)
... ...
@@ -27,6 +20,7 @@ struct sip_uri {
27 20
  * returns: fills uri & returns <0 on error or 0 if ok 
28 21
  */
29 22
 int parse_uri(char *buf, int len, struct sip_uri* uri);
23
+int parse_sip_msg_uri(struct sip_msg* msg);
30 24
 
31 25
 void free_uri(struct sip_uri* u);
32 26
 
Browse code

*** empty log message ***

Jan Janak authored on 12/08/2002 12:16:46
Showing 1 changed files
... ...
@@ -30,4 +30,4 @@ int parse_uri(char *buf, int len, struct sip_uri* uri);
30 30
 
31 31
 void free_uri(struct sip_uri* u);
32 32
 
33
-#endif
33
+#endif /* PARSE_URI_H */
Browse code

parser directory cleanup

Jan Janak authored on 08/07/2002 17:14:39
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+/*
2
+ * $Id$
3
+ */
4
+
5
+#ifndef PARSE_URI_H
6
+#define PARSE_URI_H
7
+
8
+/*
9
+ * SIP URI parser
10
+ */
11
+
12
+
13
+#include "../str.h"
14
+
15
+struct sip_uri {
16
+	str user;     /* Username */
17
+	str passwd;   /* Password */
18
+	str host;     /* Host name */
19
+	str port;     /* Port number */
20
+	str params;   /* Parameters */
21
+	str headers;  
22
+};
23
+
24
+
25
+/* buf= pointer to begining of uri (sip:x@foo.bar:5060;a=b?h=i)
26
+ * len= len of uri
27
+ * returns: fills uri & returns <0 on error or 0 if ok 
28
+ */
29
+int parse_uri(char *buf, int len, struct sip_uri* uri);
30
+
31
+void free_uri(struct sip_uri* u);
32
+
33
+#endif