Browse code

modules_k/*: moved k modules in directory modules/

Daniel-Constantin Mierla authored on 20/01/2013 11:57:52
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,80 +0,0 @@
1
-/* $Id$
2
- *
3
- * Copyright (C) 2006-2007 VozTelecom Sistemas S.L
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
- */
21
-
22
-/*
23
- * =====================================================================================
24
- * 
25
- *        Filename:  encode_allow.c
26
- * 
27
- *     Description:  [en|de]code allow header
28
- * 
29
- *         Version:  1.0
30
- *         Created:  21/11/05 20:40:25 CET
31
- *        Revision:  none
32
- *        Compiler:  gcc
33
- * 
34
- *          Author:  Elias Baixas (EB), elias@conillera.net
35
- *         Company:  VozTele.com
36
- * 
37
- * =====================================================================================
38
- */
39
-
40
-#define _GNU_SOURCE
41
-#include <stdio.h>
42
-#include <string.h>
43
-#include <netinet/in.h>
44
-#include <arpa/inet.h>
45
-#include "../../parser/parse_allow.h"
46
-#include "../../parser/msg_parser.h"
47
-#include "encode_allow.h"
48
-
49
-char *mismetodos[]={"UNDEF","INVITE","CANCEL","ACK","BYE","INFO","OPTIONS","UPDATE","REGISTER","MESSAGE","SUBSCRIBE","NOTIFY","PRACK","REFER","OTHER"};
50
-
51
-/**
52
- * Encodes allow header.
53
- *
54
- * TODO: Does not support the UNDEFINED header type !!!
55
- */
56
-int encode_allow(char *hdrstart,int hdrlen,unsigned int *bodi,char *where)
57
-{
58
-   unsigned int i;
59
-   memcpy(&i,bodi,4);
60
-   i=htonl(i);
61
-   memcpy(where,&i,4);
62
-   return 4;
63
-}
64
-
65
-int print_encoded_allow(FILE *fd,char *hdr,int hdrlen,unsigned char* payload,int paylen,char *prefix)
66
-{
67
-   unsigned int i,j=0,body;
68
-
69
-   memcpy(&body,payload,4);
70
-   body=ntohl(body);
71
-   fprintf(fd,"%sMETHODS=",prefix);
72
-   if(body==0)
73
-      fprintf(fd,"UNKNOWN");
74
-   for(i=0;i<32;j=(0x01<<i),i++){
75
-      if(body & (j<15))
76
-	 fprintf(fd,",%s",mismetodos[i]);
77
-   }
78
-   fprintf(fd,"\n");
79
-   return 1;
80
-}
Browse code

Replaced dprintf for fprintf (dprintf is somewhat gnu-specific and does not compile on Mac). even though it was just used for debugging (not on the module) it prevented compilation

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5192 689a6050-402a-0410-94f2-e92a70836424

Elias Baixas authored on 13/11/2008 10:18:48
Showing 1 changed files
... ...
@@ -62,19 +62,19 @@ int encode_allow(char *hdrstart,int hdrlen,unsigned int *bodi,char *where)
62 62
    return 4;
63 63
 }
64 64
 
65
-int print_encoded_allow(int fd,char *hdr,int hdrlen,unsigned char* payload,int paylen,char *prefix)
65
+int print_encoded_allow(FILE *fd,char *hdr,int hdrlen,unsigned char* payload,int paylen,char *prefix)
66 66
 {
67 67
    unsigned int i,j=0,body;
68 68
 
69 69
    memcpy(&body,payload,4);
70 70
    body=ntohl(body);
71
-   dprintf(fd,"%sMETHODS=",prefix);
71
+   fprintf(fd,"%sMETHODS=",prefix);
72 72
    if(body==0)
73
-      dprintf(fd,"UNKNOWN");
73
+      fprintf(fd,"UNKNOWN");
74 74
    for(i=0;i<32;j=(0x01<<i),i++){
75 75
       if(body & (j<15))
76
-	 dprintf(fd,",%s",mismetodos[i]);
76
+	 fprintf(fd,",%s",mismetodos[i]);
77 77
    }
78
-   dprintf(fd,"\n");
78
+   fprintf(fd,"\n");
79 79
    return 1;
80 80
 }
Browse code

- fix compilation on OpenBSD, related to missing includes paths and wrong order of headers, patches from Jason Creighton, jcreigh at gmail dot com - seas: move stdio.h include before <netinet/in.h>, closes #2183510 - ldap: also include localbase to Makefile, closes #2183544 - h350: also include localbase to Makefile, closes #2183551 - db_berkeley: add OpenBSD include directory to Makefile, closes #2183577

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5099 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 21/10/2008 09:23:07
Showing 1 changed files
... ...
@@ -38,10 +38,10 @@
38 38
  */
39 39
 
40 40
 #define _GNU_SOURCE
41
+#include <stdio.h>
41 42
 #include <string.h>
42 43
 #include <netinet/in.h>
43 44
 #include <arpa/inet.h>
44
-#include <stdio.h>
45 45
 #include "../../parser/parse_allow.h"
46 46
 #include "../../parser/msg_parser.h"
47 47
 #include "encode_allow.h"
Browse code

- change name in copyright headers

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4518 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 28/07/2008 15:39:28
Showing 1 changed files
... ...
@@ -2,14 +2,14 @@
2 2
  *
3 3
  * Copyright (C) 2006-2007 VozTelecom Sistemas S.L
4 4
  *
5
- * This file is part of openser, a free SIP server.
5
+ * This file is part of Kamailio, a free SIP server.
6 6
  *
7
- * openser is free software; you can redistribute it and/or modify
7
+ * Kamailio is free software; you can redistribute it and/or modify
8 8
  * it under the terms of the GNU General Public License as published by
9 9
  * the Free Software Foundation; either version 2 of the License, or
10 10
  * (at your option) any later version
11 11
  *
12
- * openser is distributed in the hope that it will be useful,
12
+ * Kamailio is distributed in the hope that it will be useful,
13 13
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 15
  * GNU General Public License for more details.
Browse code

- added license and copyright

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1819 689a6050-402a-0410-94f2-e92a70836424

Daniel-Constantin Mierla authored on 11/03/2007 19:20:59
Showing 1 changed files
... ...
@@ -1,4 +1,24 @@
1
-/* $Id$ */
1
+/* $Id$
2
+ *
3
+ * Copyright (C) 2006-2007 VozTelecom Sistemas S.L
4
+ *
5
+ * This file is part of openser, a free SIP server.
6
+ *
7
+ * openser 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
+ * openser 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
+ */
21
+
2 22
 /*
3 23
  * =====================================================================================
4 24
  * 
Browse code

Changed the logging system

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1725 689a6050-402a-0410-94f2-e92a70836424

Elias Baixas authored on 01/03/2007 17:25:55
Showing 1 changed files
... ...
@@ -18,8 +18,9 @@
18 18
  */
19 19
 
20 20
 #define _GNU_SOURCE
21
-#include <netinet/in.h>
22 21
 #include <string.h>
22
+#include <netinet/in.h>
23
+#include <arpa/inet.h>
23 24
 #include <stdio.h>
24 25
 #include "../../parser/parse_allow.h"
25 26
 #include "../../parser/msg_parser.h"
Browse code

Added code files for SEAS module

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1448 689a6050-402a-0410-94f2-e92a70836424

Elias Baixas authored on 22/12/2006 17:07:44
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,59 @@
1
+/* $Id$ */
2
+/*
3
+ * =====================================================================================
4
+ * 
5
+ *        Filename:  encode_allow.c
6
+ * 
7
+ *     Description:  [en|de]code allow header
8
+ * 
9
+ *         Version:  1.0
10
+ *         Created:  21/11/05 20:40:25 CET
11
+ *        Revision:  none
12
+ *        Compiler:  gcc
13
+ * 
14
+ *          Author:  Elias Baixas (EB), elias@conillera.net
15
+ *         Company:  VozTele.com
16
+ * 
17
+ * =====================================================================================
18
+ */
19
+
20
+#define _GNU_SOURCE
21
+#include <netinet/in.h>
22
+#include <string.h>
23
+#include <stdio.h>
24
+#include "../../parser/parse_allow.h"
25
+#include "../../parser/msg_parser.h"
26
+#include "encode_allow.h"
27
+
28
+char *mismetodos[]={"UNDEF","INVITE","CANCEL","ACK","BYE","INFO","OPTIONS","UPDATE","REGISTER","MESSAGE","SUBSCRIBE","NOTIFY","PRACK","REFER","OTHER"};
29
+
30
+/**
31
+ * Encodes allow header.
32
+ *
33
+ * TODO: Does not support the UNDEFINED header type !!!
34
+ */
35
+int encode_allow(char *hdrstart,int hdrlen,unsigned int *bodi,char *where)
36
+{
37
+   unsigned int i;
38
+   memcpy(&i,bodi,4);
39
+   i=htonl(i);
40
+   memcpy(where,&i,4);
41
+   return 4;
42
+}
43
+
44
+int print_encoded_allow(int fd,char *hdr,int hdrlen,unsigned char* payload,int paylen,char *prefix)
45
+{
46
+   unsigned int i,j=0,body;
47
+
48
+   memcpy(&body,payload,4);
49
+   body=ntohl(body);
50
+   dprintf(fd,"%sMETHODS=",prefix);
51
+   if(body==0)
52
+      dprintf(fd,"UNKNOWN");
53
+   for(i=0;i<32;j=(0x01<<i),i++){
54
+      if(body & (j<15))
55
+	 dprintf(fd,",%s",mismetodos[i]);
56
+   }
57
+   dprintf(fd,"\n");
58
+   return 1;
59
+}